We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
R CMD check
1 parent 7bc873d commit f702c33Copy full SHA for f702c33
1 file changed
R/zzz.R
@@ -14,5 +14,12 @@ devtools_default_options <- list(
14
options(devtools_default_options[toset])
15
}
16
17
+ # Prevent pak from trying to install system requirements during R CMD check.
18
+ # On certain linux systems, it might call `sudo`, as a probe for capabilities.
19
+ # That is flagged by CRAN as problematic.
20
+ if (Sys.getenv("_R_CHECK_PACKAGE_NAME_", "") != "") {
21
+ options(pkg.sysreqs = FALSE)
22
+ }
23
+
24
invisible()
25
0 commit comments