Learn R Programming

checked (version 0.5.0)

check_task: Create a task to run R CMD check

Description

Create a task to run R CMD check

Usage

check_task(build_args = NULL, args = NULL, env = NULL, ...)

Arguments

build_args

Character vector of arguments to pass to R CMD build. Pass each argument as a single element of this character vector (do not use spaces to delimit arguments like you would in the shell). For example, build_args = c("--force", "--keep-empty-dirs") is a correct usage and build_args = "--force --keep-empty-dirs" is incorrect.

args

Character vector of arguments to pass to R CMD check. Pass each argument as a single element of this character vector (do not use spaces to delimit arguments like you would in the shell). For example, to skip running of examples and tests, use args = c("--no-examples", "--no-tests") and not args = "--no-examples --no-tests". (Note that instead of the --output option you should use the check_dir argument, because --output cannot deal with spaces and other special characters on Windows.)

env

A named character vector, extra environment variables to set in the check process.

...

Arguments passed on to task

.subclass

Additional subclasses.

See Also

Other tasks: install_task(), meta_task(), task()