R/info.memory.R

"infoMemory" <-
    function(){
        command <- "BugsEmbed.AllocatedMemory"
        res <- .CmdInterpreter(command)
        buffer <- file.path(tempdir(), "buffer.txt")
        res <- readLines(buffer)
        mem <- as.numeric(gsub("^([0-9]+).+", "\\1", res))
        mem
    }

Try the BRugs package in your browser

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

BRugs documentation built on May 29, 2024, 9:38 a.m.