Description Usage Arguments Value Author(s) Examples
Get the executable file path of a package
1 | get_executable(pkg, name = tolower(pkg), dir = "bin", mustWork = TRUE)
|
pkg |
character, the name of a package |
name |
character, the name of the executable file |
dir |
character, the directory in the package hierarchy |
mustWork |
See |
character, the executable file path
Xiaobei Zhao
1 2 3 4 | ## Not run:
try(get_executable('Xmisc','Xmisc-argumentparser.R'))
## End(Not run)
|
Attaching package: 'Xmisc'
The following object is masked from 'package:base':
dir.exists
Error in system.file(dir, name, package = pkg, mustWork = mustWork) :
no file found
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.