This function makes it easy to access the examples included in pkginspector.

pkginspector_example(path)

Arguments

path

Path to example.

Value

A character string giving an example's path.

Examples

path <- pkginspector_example("viridisLite") path
#> [1] "/cache/pkginspector/extdata/viridisLite"
dir(path)
#> [1] "codecov.yml" "data" "DESCRIPTION" "Dockerfile" "LICENSE" #> [6] "man" "NAMESPACE" "R" "README.md" "tests"