document (version 2.2.1)

clean_description_file: Make a Default DESCRIPTION File Pass R CMD check

Description

utils::package.skeleton leaves us with a DESCRIPTION that throws a warning in R CMD check. Fix that.

Usage

clean_description_file(path)

Arguments

path

Path to the DESCRIPTION file or the directory containing it.

Value

Invisibly NULL.

Examples

Run this code
# NOT RUN {
if (! exists("dummy")) assign("dummy", "dumb")
utils::package.skeleton(path = tempdir())
old <- readLines(file.path(tempdir(), "anRpackage", "DESCRIPTION"))
clean_description_file(path = file.path(tempdir(), "anRpackage", 
                                        "DESCRIPTION"))
new <- readLines(file.path(tempdir(), "anRpackage", "DESCRIPTION"))
setdiff(new, old)
# }

Run the code above in your browser using DataCamp Workspace