Learn R Programming

NoviceDeveloperResources2 (version 1.1.0)

sortedInputForCheckBuildInstallSourcePackage: sortedInputForCheckBuildInstallSourcePackage

Description

compute a list of packages in the correct order to input to checkBuildInstallSourcePackage()

Usage

sortedInputForCheckBuildInstallSourcePackage(retrieve, burd)

Value

returns a list of packages in the correct order to input to checkBuildInstallSourcePackage()

Arguments

retrieve

return value of retrieveLeafNodes()

burd

return value of bottomUpRecursiveDriver()

Examples

Run this code
if (FALSE) {
# you need to specify dir, packs that are on your own computer !!
dir1<-"~/personal/hearts/hearts_card_game_bayesian_inference"
dir2<-"packages/inference_packages/inference_packages/"
packs<-c("cardUtils","clickableImageMap","editDriver",
"heartsCIM","iterationDriver","logos","playOneTrick",
"playWholeHandDriverPassParams","probTab","relaxDriver")
master<-PackageDependencies(sprintf("%s/%s",dir1,dir2),packs,vector("list",length(packs)),1,TRUE)
l<-retrieveNamespace(sprintf("%s/%s",dir1,dir2),packs)
burd<-bottomUpRecursiveDriver(l,c("iterationDriver"),TRUE)
retrieve<-retrieveLeafNodes(master)
s<-sortedInputForCheckBuildInstallSourcePackage(retrieve,burd)
}

Run the code above in your browser using DataLab