@@ -60,7 +60,8 @@ if [ "$ARROW_R_DEV" = "TRUE" ]; then
60
60
fi
61
61
fi
62
62
63
- export _R_CHECK_CRAN_INCOMING_REMOTE_=FALSE
63
+ export _R_CHECK_CRAN_INCOMING_REMOTE_=TRUE
64
+ export _R_CHECK_CRAN_INCOMING_=TRUE
64
65
# --run-donttest was used in R < 4.0, this is used now
65
66
export _R_CHECK_DONTTEST_EXAMPLES_=TRUE
66
67
# Not all Suggested packages are needed for checking, so in case they aren't installed don't fail
@@ -90,6 +91,8 @@ SCRIPT="as_cran <- !identical(tolower(Sys.getenv('NOT_CRAN')), 'true')
90
91
if (as_cran) {
91
92
args <- '--as-cran'
92
93
build_args <- character()
94
+ # Attempt to install pandoc, this will only work on systems with apt
95
+ system(c('apt install -y pandoc'))
93
96
} else {
94
97
args <- c('--no-manual', '--ignore-vignettes')
95
98
build_args <- '--no-build-vignettes'
@@ -110,6 +113,11 @@ SCRIPT="as_cran <- !identical(tolower(Sys.getenv('NOT_CRAN')), 'true')
110
113
on.exit(tools::pskill(pid_flight), add = TRUE)
111
114
}
112
115
116
+ run_donttest <- identical(tolower(Sys.getenv('_R_CHECK_DONTTEST_EXAMPLES_', 'true')), 'true')
117
+ if (run_donttest) {
118
+ args <- c(args, '--run-donttest')
119
+ }
120
+
113
121
install_args <- Sys.getenv('INSTALL_ARGS')
114
122
if (nzchar(install_args)) {
115
123
args <- c(args, paste0('--install-args=\" ', install_args, '\" '))
@@ -119,7 +127,7 @@ SCRIPT="as_cran <- !identical(tolower(Sys.getenv('NOT_CRAN')), 'true')
119
127
print(build_args)
120
128
print(args)
121
129
122
- rcmdcheck::rcmdcheck(build_args = build_args, args = args, error_on = 'warning', check_dir = 'check', timeout = 3600)"
130
+ rcmdcheck::rcmdcheck(build_args = build_args, args = args, error_on = 'warning', check_dir = 'check', timeout = 3600, env = env )"
123
131
echo " $SCRIPT " | ${R_BIN} --no-save
124
132
125
133
AFTER=$( ls -alh ~ /)
0 commit comments