parseRunExamples: parseRunExamples

View source: R/runExamplesWrapper.R

parseRunExamplesR Documentation

parseRunExamples

Description

retrieve the lines containing the function name within the run_examples() results output file

Usage

parseRunExamples(f)

Arguments

f

character string containing the path name of the run_examples() results output file

Value

returns a list of the lines containing the function name

Examples

## Not run: 
# replace dir and pack with your own versions!!
# run this example within the RStudio Console for the package 'pack'
dir1<-"~/personal/hearts/hearts_card_game_bayesian_inference/packages/"
dir2<-"inference_packages/inference_packages/"
dir<-sprintf("%s/%s",dir1,dir2)
pack<-sprintf("%s/%s",dir,"cardUtils")
out<-"~/test.txt"
sink(out)
on.exit(sink())
try(run_examples(pack,run_donttest=TRUE,run_dontrun=TRUE,document=FALSE))
sink()
x<-parseRunExamples(out)

## End(Not run)


runExamplesWrapper documentation built on April 12, 2025, 2:01 a.m.