From c2431d9dcaffeb8ad8bfb5e1fbbc402682a6fa34 Mon Sep 17 00:00:00 2001 From: Paul Lietar Date: Fri, 26 Jul 2024 13:21:48 +0100 Subject: [PATCH] Fix codefactor --- R/outpack_root.R | 4 ++-- R/outpack_store.R | 4 ++-- R/util.R | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/R/outpack_root.R b/R/outpack_root.R index 0285e748..a73e6c49 100644 --- a/R/outpack_root.R +++ b/R/outpack_root.R @@ -71,9 +71,9 @@ file_export <- function(root, id, there, here, dest, overwrite, call = NULL) { }) } - # Set copy.mode = FALSE: files in the archive are read-only. It's easier on + # Set copy_mode = FALSE: files in the archive are read-only. It's easier on # the user if we make them writable again. - copy_files(there_full, here_full, overwrite = overwrite, copy.mode = FALSE) + copy_files(there_full, here_full, overwrite = overwrite, copy_mode = FALSE) } } diff --git a/R/outpack_store.R b/R/outpack_store.R index 7a128f1e..4036e60c 100644 --- a/R/outpack_store.R +++ b/R/outpack_store.R @@ -34,9 +34,9 @@ file_store <- R6::R6Class( } fs::dir_create(dirname(dst)) - # Set copy.mode = FALSE: files in the store are read-only. It's easier on + # Set copy_mode = FALSE: files in the store are read-only. It's easier on # the user if we make them writable again. - copy_files(src, dst, overwrite = overwrite, copy.mode = FALSE) + copy_files(src, dst, overwrite = overwrite, copy_mode = FALSE) invisible(dst) }, diff --git a/R/util.R b/R/util.R index d7d772fb..79689b04 100644 --- a/R/util.R +++ b/R/util.R @@ -152,12 +152,12 @@ expand_dirs <- function(paths, workdir) { copy_files <- function(src, dst, overwrite = FALSE, - copy.mode = TRUE) { + copy_mode = TRUE) { fs::dir_create(unique(dirname(dst))) # mrc-5557: We intentionally don't use fs::file_copy, as it does not work # reliably on mounted Samba file systems. - ok <- file.copy(src, dst, overwrite = overwrite, copy.mode = copy.mode) + ok <- file.copy(src, dst, overwrite = overwrite, copy.mode = copy_mode) if (any(!ok)) { cli::cli_abort("Could not copy file{?s} {.file {src[!ok]}}") }