diff --git a/R/archive_packages.R b/R/archive_packages.R index 0de4f2b..b301d6c 100644 --- a/R/archive_packages.R +++ b/R/archive_packages.R @@ -38,7 +38,7 @@ archive_package <- function( # only archive if more than one package exists in the root if (length(all_versions) > 1) { # get most recent version from CRAN - last_version <- available.packages()[.x, "Version"] + last_version <- available.packages("https://cloud.r-project.org")[.x, "Version"] # check if last version is available in repo if (any(grepl(last_version, all_versions))) { index <- which(grepl(last_version, all_versions))