Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
andrie committed May 29, 2024
2 parents 637bc9e + 8a133e5 commit f5bf926
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: miniCRAN
Version: 0.3.0
Version: 0.3.0.9000
Authors@R: c(
person("Andrie", "de Vries", role=c("aut", "cre", "cph"), email="[email protected]"),
person("Alex", "Chubaty", role="ctb", email="[email protected]"),
Expand Down
8 changes: 6 additions & 2 deletions R/makeRepo.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
#' [write_PACKAGES()]
#'
#' @inheritParams pkgDep
#'
#' @inheritParams pkgAvail
#'
#' @param pkgs Character vector of packages to download
#'
Expand All @@ -39,7 +41,9 @@
#'
#' @example /inst/examples/example_makeRepo.R
makeRepo <- function(pkgs, path, repos = getOption("repos"), type = "source",
Rversion = R.version, download = TRUE, writePACKAGES = TRUE, quiet = FALSE) {
Rversion = R.version, download = TRUE, writePACKAGES = TRUE,
filters = NULL,
quiet = FALSE) {

assert_that(is_path(path))
# if (!file.exists(path)) stop("Download path does not exist")
Expand All @@ -59,7 +63,7 @@ makeRepo <- function(pkgs, path, repos = getOption("repos"), type = "source",
}
}

pdb <- pkgAvail(repos = repos, type = t, Rversion = Rversion)
pdb <- pkgAvail(repos = repos, type = t, Rversion = Rversion, filters = filters)

if (download) {
download_packages(pkgs, destdir = pkgPath, available = pdb, repos = repos,
Expand Down
3 changes: 3 additions & 0 deletions man/makeRepo.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f5bf926

Please sign in to comment.