View source: R/S03_Utilities.R
find_file_name | R Documentation |
Checks if a file name can be found in a folder via partial string matching. Multiple types of output are supported.
find_file_name(string, output = "name", full = FALSE, ...)
string |
A character string, used for partial string matching. |
output |
The type of output to return. Options include...
|
full |
Logical; if |
... |
Additional arguments to the
|
Either...
A single logical value, TRUE
if
any matching file names are found
('logical'
).
A logical vector, TRUE
for all
matching files in the vector of file
names ('vector'
).
An integer vector giving the position of
any matches in the vector of file names
('index'
).
A character vector with any matching
file names, otherwise NULL
('name'
).
# Go to folder with html files for help pages
setwd(find.package("arfpam")[1])
setwd("html")
# Find help page for function 'every'
find_file_name("every")
find_file_name("every", output = "index")
find_file_name("every", output = "logical")
find_file_name("every", output = "vector")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.