rxs_parseExtractionScripts.Rd
Read and parse the extraction scripts in a directory
rxs_parseExtractionScripts(
path,
pattern = "\\.[Rr]xs\\.[Rr]md$|\\.Rxs$",
exclude = c("extractionScriptTemplate.[Rr]xs.[Rr]md", "\\[EXCLUDED]"),
ignore.case = TRUE,
recursive = TRUE,
silent = metabefor::opts$get("silent"),
progressBar = TRUE,
showErrors = TRUE,
encoding = "UTF-8",
parallel = FALSE
)
The path containing the extraction scripts.
The regular expression specifying which files to read.
A regular expression specifying which files to ignore.
Whether the regular expression is case sensitive.
Whether to also look in subdirectories.
Whether to be quiet or chatty.
Whether to show the progress bar.
Whether to show or hide errors that are encountered.
The files' encoding.
Whether to use parallel processing.
A list of parsed extraction scripts.
### Path with example Rxs files
rxsProject_path <-
system.file(
"extdata",
"extraction-examples",
package = "metabefor"
);
### Parse the files
example_rxsProject <-
metabefor::rxs_parseExtractionScripts(
rxsProject_path
);
### Show the imported project
example_rxsProject;
#>
#> This Rxs project contains 2 Rxs trees (suggesting it contains data extracted from 2 sources).
#>
#> These trees contain the following entities:
#>
#> 'general', 'publicationYear', 'sourceAuthors', 'sourceTitle', 'modeInfo', 'methods', 'sample', 'sampleSize', 'samplingStrategy', 'method', 'variables', 'chalk', 'witches', 'crayons', 'instruments', 'associations', 'chalk_and_witches', 'criminals', 'cops', 'criminals_and_cops', 'NA', 'variableIdentifier', 'measurementLevel', 'associationIdentifier', 'varId1', 'varId2', 'r' & 't'.