Learn R Programming

NoviceDeveloperResources2 (version 1.1.0)

bottomUpRecursive: bottomUpRecursive

Description

given a list of packages, determine which packages recursively import the packages in the list

Usage

bottomUpRecursive(l, p0)

Value

returns a list of the original query packages plus the packages that directly import them

Arguments

l

return value of retrieveNamespace()

p0

list of those packages whose R code has been modified by the developer

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")
l<-retrieveNamespace(sprintf("%s/%s",dir1,dir2),packs)
bur<-bottomUpRecursive(l,c("iterationDriver"))
}

Run the code above in your browser using DataLab