safe_rcmdcheck: deal with errors at _build_ stage when attempting to check

Description Usage Arguments Value Note Examples

View source: R/safe_rcmdcheck.R

Description

deal with errors at build stage when attempting to check

Usage

1
safe_rcmdcheck(x, error = "never", ...)

Arguments

x

character(1) path to source package folder for a package (not a tarball)

error

character() passed to rcmdcheck::rcmdcheck

...

passed to rcmdcheck::rcmdcheck, should not include 'error'

Value

a list, see note.

Note

If rcmdcheck succeeds without returning try-error, this function returns the result of rcmdcheck. Otherwise it build a list with elements 'package', 'errors', 'warnings', 'notes', 'install_out', 'description' and 'version', in which the 'errors' component includes data from capture.output on rcmdcheck attempt.

Examples

1
2
chk = safe_rcmdcheck(system.file("demo_srcs/parody", package="BiocQE"))
str(chk)

vjcitn/BiocQE documentation built on Dec. 30, 2021, 12:20 a.m.