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/RtmpYDGGqu' already exists
# copy the package template into the directory
pkg_template(dir, "mynewpkg")
#> Creating /tmp/RtmpYDGGqu/tests
#> Creating /tmp/RtmpYDGGqu/tests/tinytest.R
#> Creating /tmp/RtmpYDGGqu/inst
#> Creating /tmp/RtmpYDGGqu/inst/tinytest
#> Creating /tmp/RtmpYDGGqu/inst/tinytest/test_mynewpkg.R