Create Package Directory
create_pkg_dir(pkg_dir)
pkg_dir | path to package directory to be created, including the pkgname as last folder |
---|
creates directory for package if not existing
## not a valid pkg folder if (FALSE) { pkg_dir <- file.path(tempdir(), "pkgname/pkgname") create_pkg_dir(pkg_dir) } ## valid pkg folder pkg_dir <- file.path(tempdir(), "pkgname") create_pkg_dir(pkg_dir)#>#> Warning: `recursive` is deprecated, please use `recurse` instead#> [1] "/tmp/RtmprDPzJB/pkgname"