Description Usage Arguments Details Value Methods (by class) Examples
This function checks for the section/nested sections in the config YAML file.
Returns TRUE
if it exist(s) or FALSE
otherwise.
1 2 3 4 | checkSection(object, sectionNames)
## S4 method for signature 'Config'
checkSection(object, sectionNames)
|
object |
object of |
sectionNames |
the name of the section or names of the nested sections to look for |
Element indices can be used instead of the actual names, see Examples
.
a logical indicating whether the section exists
Config
: checks for existence of a section in "Config"
objects
1 2 3 4 5 | projectConfig = system.file("extdata", "example_peps-master",
"example_amendments1", "project_config.yaml", package="pepr")
p=Project(projectConfig)
checkSection(config(p),sectionNames = c("amendments","newLib"))
checkSection(config(p),sectionNames = c("amendments",1))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.