Use Package Skeleton
use_pkg_skeleton(pkg_name)
pkg_name | name of R package |
---|
creates pkg skeleton in current working directory
## valid pkg folder pkg_name <- "pkgname" pkg_dir <- file.path(tempdir(), pkg_name) pkg_dir <- create_pkg_dir(pkg_dir)#>#> Warning: /tmp/RtmprDPzJB/pkgname cannot be created. It exists and is empty.#> ✔ Setting active project to '/tmp/RtmprDPzJB/pkgname' #> ✔ Writing 'pkgname.Rproj' #> ✔ Adding '.Rproj.user' to '.gitignore'