set mirror
This commit is contained in:
parent
7768d8a881
commit
d10483d4e2
1 changed files with 1 additions and 1 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Reference in a new issue