View source: R/NoviceDeveloperResources2.R
retrieveNamespace | R Documentation |
retrieve a list of the imported packages in a NAMESPACE FILE
retrieveNamespace(dir, packs)
dir |
character string containing the name of the directory holding packs |
packs |
list of package names |
returns a list containing the intersection of (1) imported package names and (2) packs list
## Not run:
# 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/"
dir<-sprintf("%s/%s",dir1,dir2)
packs<-c("cardUtils","clickableImageMap","editDriver",
"heartsCIM","iterationDriver","logos","playOneTrick",
"playWholeHandDriverPassParams","probTab","relaxDriver")
rns<-retrieveNamespace(dir,packs)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.