startExample: startExample

View source: R/runExamplesWrapper.R

startExampleR Documentation

startExample

Description

parse the output file produced by RunExamples() to determine the next example to start the list provided to run_examples()

Usage

startExample(f, xnames)

Arguments

f

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

xnames

list of all the function names within the package

Value

returns a list whose components are

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)
load_all()
pack<-sprintf("%s/%s",dir,"cardUtils")
out<-sprintf("%s/%s",tempdir(),"runExamplesOut.txt")
l<-retrieveExamplesFromMan(pack)
xnames<-unlist(strsplit(sort(names(l$x)),".Rd"))
sink(out)
on.exit(sink())
suppressMessages(suppressWarnings(try(run_examples(pack))))
sink()
l1<-startExample(out,xnames)

## End(Not run)


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