This function copies a package template into a new directory. The template includes a DESCRIPTION file, a minimal R/ directory and placeholders with instructions. You can then edit these files to customize your new package.
Examples
# create a new directory
dir <- tempdir()
dir.create(dir)
#> Warning: '/tmp/Rtmp1yBPLO' already exists
# copy the package template into the directory
pkg_template(dir, "mynewpkg")