Learn R Programming

Xmisc (version 0.2.1)

get_executable: Get the executable file path of a package

Description

Get the executable file path of a package

Usage

get_executable(pkg, name = tolower(pkg), dir = "bin", mustWork = TRUE)

Arguments

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 system.file

Value

character, the executable file path

Examples

Run this code
## Not run: 
# try(get_executable('Xmisc','Xmisc-argumentparser.R'))
# ## End(Not run)

Run the code above in your browser using DataLab