View source: R/get_string_constants_in_scripts.R
get_string_constants_in_scripts | R Documentation |
Get Frequency of String Constant Usage in R Scripts
get_string_constants_in_scripts(
root,
scripts = dir(root, "\\.[Rr]$", recursive = TRUE),
two_version_check = TRUE,
FUN = NULL
)
root |
path to folder in which to look for R scripts |
scripts |
optional. Paths to R scripts in which to search for string
constants, relative to |
two_version_check |
if |
FUN |
optional. Function used to browse the code tree for string
constants. If |
data frame with columns file_id
(file identifier),
string
(string constant found in the file) and count
(number
of occurrences of the string counted in the file). The file identifier can
be resolved to a full file name using the "file database" that is stored in
the attribute "file_db".
root <- system.file(package = "kwb.code")
constants <- get_string_constants_in_scripts(root)
# Get paths to files from "file database" stored in attribute "file_db"
kwb.utils::getAttribute(constants, "file_db")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.