# NOT RUN {
### Get path to example source
examplePath <-
system.file("extdata", package="rock");
### Parse all example sources in that directory
parsedExamples <- rock::parse_sources(examplePath);
### Show results of exporting the codes
export_codes_to_txt(parsedExamples);
### Only show select a narrow set of codes
export_codes_to_txt(parsedExamples,
leavesOnly=TRUE,
includePath=FALSE,
onlyChildrenOf = "parentCode2",
regex="5|6");
# }
Run the code above in your browser using DataLab