Creates a boilerplate package NAMESPACE.

pkg_namespace(pkg_root, add = NULL, msg = "NAMESPACE file path:")

Arguments

pkg_root

Character string. Package root directory.

add

Character string. Entries to the NAMESPACE in addition to the boilerplate example.

msg

Character string. Optional message. If supplied, prints msg dir/fn.

Details

Note that if pkg_create() is used, this function will be called.

If you are going to document, check, and build your package using devtools, you may delete the boilerplate NAMESPACE file.

THIS FUNCTION OVERWRITES AN EXISTING NAMESPACE FILE IN THE SPECIFIED PACKAGE ROOT DIRECTORY. USE WITH CAUTION.

Author

Ivan Jacob Agaloos Pesigan

Examples

if (FALSE) { pkg_namespace( pkg_root = "~/boilerplatePackage" ) }