You need to set the args
argument appropriately with command line arguments to R CMD check
. The latter has --no-examples
so try
check(...., args = "--no-examples")
where ....
are the other arguments you were using for check()
.
You can see all the arguments for R CMD check
by running it with R CMD check --help
at a command prompt/shell. To pass more than one to check()
you'll need to concatenate them into a character vector, e.g.:
check(...., args = c("--no-examples", "--no-tests"))