From a01c7e2003e2c41e9cbe7524e6e4c8a3ae6c1b44 Mon Sep 17 00:00:00 2001 From: George Stagg Date: Wed, 28 Feb 2024 16:43:25 +0000 Subject: [PATCH] Set dependencies = FALSE as default in add_pkg() Closes #19. See r-wasm/actions#15 for discussion. --- R/repo.R | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/R/repo.R b/R/repo.R index 6bed56e..a405413 100644 --- a/R/repo.R +++ b/R/repo.R @@ -76,9 +76,8 @@ add_list <- function(list_file, ...) { #' source. Defaults to `NA`, meaning prefer a built-in list of references to #' packages pre-modified for use with webR. #' @param dependencies Dependency specification for packages to additionally -#' add to the repository. Defaults to `NA`, meaning add only the required -#' dependencies. If `FALSE`, adds no additional packages. See -#' [pkgdepends::as_pkg_dependencies] for details. +#' add to the repository. Defaults to `FALSE`, meaning no additional packages. +#' See [pkgdepends::as_pkg_dependencies] for details. #' #' @importFrom dplyr rows_update select #' @importFrom pkgdepends new_pkg_download_proposal @@ -86,7 +85,7 @@ add_list <- function(list_file, ...) { add_pkg <- function(packages, repo_dir = "./repo", remotes = NA, - dependencies = NA) { + dependencies = FALSE) { # Set up pkgdepends configuration config <- ppm_config config$dependencies <- dependencies