Skip to content

Commit 6b4fc02

Browse files
actually remove R.cache in the right place.
1 parent a958e3e commit 6b4fc02

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Usually you shouldn't need to change the first part of the file
44

55
# DO NOT CHANGE THE CODE BELOW
6-
before_install: R -q -e 'install.packages(c("remotes", "curl", "knitr", "rmarkdown")); remotes::install_github("ropenscilabs/tic"); tic::prepare_all_stages(); remotes::install_deps(dependencies = TRUE); if (isTRUE(as.logical(toupper(Sys.getenv("R_REMOVE_RCACHE"))))) remove.packages("R.cache"); tic::before_install()'
6+
before_install: R -q -e 'install.packages(c("remotes", "curl", "knitr", "rmarkdown")); remotes::install_github("ropenscilabs/tic"); tic::prepare_all_stages(); remotes::install_deps(dependencies = TRUE); tic::before_install()'
77
install: R -q -e 'tic::install()'
88
after_install: R -q -e 'tic::after_install()'
99
before_script: R -q -e 'tic::before_script()'

tic.R

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
get_stage("after_install") %>%
2+
add_code_step(
3+
{
4+
if (isTRUE(as.logical(toupper(Sys.getenv("R_REMOVE_RCACHE"))))) {
5+
remove.packages("R.cache")
6+
}
7+
}
8+
)
19
do_package_checks(error_on = ifelse(getRversion() >= "3.2", "note", "error"))
210

311
if (Sys.getenv("id_rsa") != "" && ci()$get_branch() == "master" && Sys.getenv("BUILD_PKGDOWN") != "") {

0 commit comments

Comments
 (0)