Description Usage Arguments Details Author(s) Examples
View source: R/pkg_find_root.R
Finds package root directory by seraching for
tne DESCRIPTION file that contains
Package: pkg_name
.
1 |
dir |
Character string.
Directory to search.
If unspecified, defaults to |
pkg_name |
Character string. Package name. |
par |
Logical.
If |
ncores |
Integer.
Number of cores to use if |
The function starts searching the specified dir
.
If the search does not return the root directory
for the specified pkg_name
,
If the function fails to find a valid package root directory in dir,
the following directories will be searched:
../dir
../../dir
working directory
(getwd()
)
Sys.getenv("HOME")
/
Ivan Jacob Agaloos Pesigan
1 2 3 4 5 6 7 8 | ## Not run:
pkg_find_root(
dir = getwd(),
pkg_name = "boilerplatePackage",
par = FALSE
)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.