From 78190e91f27eeaa9bcb5c6dde2a11aa599d894a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Cs=C3=A1rdi?= Date: Tue, 4 Apr 2023 19:23:21 +0200 Subject: [PATCH] Fix adding metadata --- R/install-binary.R | 2 ++ 1 file changed, 2 insertions(+) diff --git a/R/install-binary.R b/R/install-binary.R index 3949a57a..de1c8d0f 100644 --- a/R/install-binary.R +++ b/R/install-binary.R @@ -61,6 +61,8 @@ install_extracted_binary <- function(filename, lib_cache, pkg_cache, lib, #' @importFrom utils modifyList add_metadata <- function(pkg_path, metadata) { + if (!length(metadata)) return() + ## During installation, the DESCRIPTION file is read and an package.rds ## file created with most of the information from the DESCRIPTION file. ## Functions that read package metadata may use either the DESCRIPTION