Skip to content

Commit 1ef9331

Browse files
committed
Skip base pkgs
1 parent 602ee06 commit 1ef9331

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

rechecktools/R/ci.R

+7-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ install_recheck_deps <- function(path = '.', which = 'strong'){
1414
cranrepo <- getOption('repos')['CRAN']
1515
cran <- utils::available.packages(repos = cranrepo)
1616
crandeps <- tools::package_dependencies(pkg, db = cran, which = which, reverse = TRUE)[[pkg]]
17-
packages <- unique(c(desc_deps(desc), crandeps))
17+
packages <- setdiff(unique(c(desc_deps(desc), crandeps)), basepkgs())
1818
if(grepl("Linux", Sys.info()[['sysname']])){
1919
preinstall_linux_binaries(packages)
2020
} else {
@@ -28,3 +28,9 @@ desc_deps <- function(desc){
2828
deps <- c(desc$Package, desc$Depends, desc$Imports, desc$LinkingTo, desc$Suggests, desc$Enhances)
2929
unique(trimws(sub("\\(.*\\)", "", unlist(strsplit(as.character(deps), ',')))))
3030
}
31+
32+
# Do not try to install base packages
33+
basepkgs <- function(){
34+
c("R", rownames(installed.packages(priority="base")))
35+
}
36+

0 commit comments

Comments
 (0)