R/saveMetabolicData.R

Defines functions saveMetabolicData

Documented in saveMetabolicData

saveMetabolicData <- function(RefDbcache, path = Sys.getenv("HOME")) {
    RefDbcache <- as.list(RefDbcache)
    RefDbcache$user <- Sys.getenv("USERNAME")
    RefDbcache$date <- date()
    RefDbcache$version <- R.Version()
    RefDbcache$date <- date()
    RefDbcache$network <- constructMetabolicNetwork(path)
    message("saving data to the Specified dir...", domain = NA)
    path <- sprintf("%s/%s", path, ".mmnet")
    if (!exists(path)) 
        dir.create(path, showWarnings = FALSE)
    save(RefDbcache, file = sprintf("%s/%s", path, "RefDbcache.rda"))
} 

Try the mmnet package in your browser

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

mmnet documentation built on May 31, 2017, 3:25 p.m.