R/loaddatapkg.R

Defines functions loaddatapkg

Documented in loaddatapkg

loaddatapkg <- function(mydatapkg,installDir=.libPaths()[1]){
  if (mydatapkg %in% .packages(all.available=TRUE)) {
    require(mydatapkg,character.only=TRUE)
  } else {
    install.packages(mydatapkg, lib=installDir, contriburl=contrib.url("http://www.ebi.ac.uk/huber-srv/data/Rrepos"))
    require(mydatapkg,character.only=TRUE)
  } # else package not available
} # loaddatapkg

Try the macat package in your browser

Any scripts or data that you put into this service are public.

macat documentation built on Nov. 8, 2020, 5:44 p.m.