Learn R Programming

runExamplesWrapper (version 1.0)

parseRunExamples: parseRunExamples

Description

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

Usage

parseRunExamples(f)

Value

returns a list of the lines containing the function name

Arguments

f

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

Examples

Run this code
if (FALSE) {
# 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)
}

Run the code above in your browser using DataLab