diff --git a/src/library/tools/R/check.R b/src/library/tools/R/check.R index fa7b5da1f16..a6f5444157f 100644 --- a/src/library/tools/R/check.R +++ b/src/library/tools/R/check.R @@ -669,8 +669,10 @@ add_dummies <- function(dir, Log) } } } - - check_rust() + + if (as_cran) { + check_rust() + } miss <- file.path("inst", "doc", c("Rplots.ps", "Rplots.pdf")) if (any(f <- file.exists(miss))) {