R/info.modules.R

"infoModules" <-
    function()
                                        #   List loaded OpenBUGS components
{
    command <- "BugsEmbed.Modules"
    .CmdInterpreter(command)
    buffer <- file.path(tempdir(), "buffer.txt")
    result <- read.table(buffer, skip = 1, as.is=TRUE, sep="\t")[,-1]
    for(i in c(1,4,5,6))
        result[,i] <- gsub(" ", "", result[,i])
    names(result) <- c("Module", "Clients", "Version", "Maintainer", "Compiled", "Loaded")
    return(result)    
}

Try the BRugs package in your browser

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

BRugs documentation built on May 31, 2023, 7:19 p.m.