From 53871467506df2e24c45bbbbc32a24689b10915a Mon Sep 17 00:00:00 2001 From: Jeffrey Girard Date: Mon, 23 Sep 2024 14:20:46 -0500 Subject: [PATCH] add ... arg --- R/version.R | 5 +++-- surveydown.Rproj | 44 ++++++++++++++++++++++---------------------- 2 files changed, 25 insertions(+), 24 deletions(-) diff --git a/R/version.R b/R/version.R index 311a50d1..dcdd1632 100644 --- a/R/version.R +++ b/R/version.R @@ -6,6 +6,7 @@ #' #' @param force Logical; if TRUE, forces an update regardless of current versions. #' Defaults to FALSE. +#' @param ... Optional arguments to pass on to `sd_update_extension()` #' #' @return No return value, called for side effects. #' @export @@ -15,7 +16,7 @@ #' sd_update_surveydown() #' sd_update_surveydown(force = TRUE) #' } -sd_update_surveydown <- function(force = FALSE) { +sd_update_surveydown <- function(force = FALSE, ...) { # Check R package version pkg_version <- utils::packageVersion("surveydown") @@ -40,7 +41,7 @@ sd_update_surveydown <- function(force = FALSE) { ) message("Updating surveydown Quarto extension...") - surveydown::sd_update_extension() + surveydown::sd_update_extension(...) message("Update complete.") } else { diff --git a/surveydown.Rproj b/surveydown.Rproj index fd8dd284..895b597d 100644 --- a/surveydown.Rproj +++ b/surveydown.Rproj @@ -1,22 +1,22 @@ -Version: 1.0 - -RestoreWorkspace: No -SaveWorkspace: No -AlwaysSaveHistory: Default - -EnableCodeIndexing: Yes -UseSpacesForTab: Yes -NumSpacesForTab: 4 -Encoding: UTF-8 - -RnwWeave: Sweave -LaTeX: pdfLaTeX - -AutoAppendNewline: Yes -StripTrailingWhitespace: Yes -LineEndingConversion: Posix - -BuildType: Package -PackageUseDevtools: Yes -PackageInstallArgs: --no-multiarch --with-keep.source -PackageRoxygenize: rd,collate,namespace +Version: 1.0 + +RestoreWorkspace: No +SaveWorkspace: No +AlwaysSaveHistory: Default + +EnableCodeIndexing: Yes +UseSpacesForTab: Yes +NumSpacesForTab: 4 +Encoding: UTF-8 + +RnwWeave: Sweave +LaTeX: pdfLaTeX + +AutoAppendNewline: Yes +StripTrailingWhitespace: Yes +LineEndingConversion: Posix + +BuildType: Package +PackageUseDevtools: Yes +PackageInstallArgs: --no-multiarch --with-keep.source +PackageRoxygenize: rd,collate,namespace