Skip to content

Commit

Permalink
Merge pull request #94 from jmgirard/main
Browse files Browse the repository at this point in the history
Add ... argument to sd_update_surveydown()
  • Loading branch information
jhelvy authored Sep 23, 2024
2 parents c67bc02 + 5387146 commit 0daa30c
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 24 deletions.
5 changes: 3 additions & 2 deletions R/version.R
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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")

Expand All @@ -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 {
Expand Down
44 changes: 22 additions & 22 deletions surveydown.Rproj
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 0daa30c

Please sign in to comment.