From f0af31e5d291da99b0a2f5e6470eaf956131c95a Mon Sep 17 00:00:00 2001 From: pat-s Date: Fri, 26 Jul 2024 12:02:47 +0200 Subject: [PATCH] overwrite PACKAGES when exists --- R/packages_index.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/packages_index.R b/R/packages_index.R index 409ca34..1afe257 100644 --- a/R/packages_index.R +++ b/R/packages_index.R @@ -31,7 +31,7 @@ add_to_package_index <- function( # get latest PACKAGES file from S3 if (s3fs::s3_file_exists(sprintf("%s/PACKAGES", remote_bin_dir))) { - s3fs::s3_file_download(sprintf("%s/PACKAGES", remote_bin_dir), sprintf("%s/PACKAGES", local_bin_dir)) + s3fs::s3_file_download(sprintf("%s/PACKAGES", remote_bin_dir), sprintf("%s/PACKAGES", local_bin_dir), overwrite = TRUE) } file_names <- list.files(local_bin_dir, pattern = sprintf("%s*", package_name))