findFilesInPackage {wyz.code.offensiveProgramming} | R Documentation |
find files in package
Description
Use function findFilesInPackage
to find files in package.
Usage
findFilesInPackage(filenames_s, packageName_s_1)
Arguments
filenames_s |
An unconstrained vector of |
packageName_s_1 |
A length-1 vector of |
Value
This function is vectorized. It returns a list
with one entry for each file searched for.
Author(s)
Fabien Gelineau <neonira@gmail.com>
Maintainer: Fabien Gelineau <neonira@gmail.com>
Examples
# ------- example 1 -------
findFilesInPackage(c("AdditionTCFIG1.R", "Addition_TCFI_Partial_R6.R",
"Addition_TCFI_Partial_S3.R"),
"wyz.code.offensiveProgramming")
# .../wyz.code.offensiveProgramming/code-samples/both-defs/good/full/AdditionTCFIG1.R
# .../wyz.code.offensiveProgramming/code-samples/both-defs/good/partial/Addition_TCFI_Partial_R6.R
# .../wyz.code.offensiveProgramming/code-samples/both-defs/good/partial/Addition_TCFI_Partial_S3.R
# ------- example 2 -------
findFilesInPackage("datatable-intro.html", "data.table")
# .../data.table/doc/datatable-intro.html
[Package wyz.code.offensiveProgramming version 1.1.24 Index]