R/check_ram.R

Defines functions check_ram

check_ram <- function() {
        mem <- benchmarkme::get_ram()
        if (is.na(mem)) {
                return (NA)
        } else {
                res <- as.numeric(mem) / 1000000000
                names(res) <- "ram_in_gb"
                return (res)
        }
}
HajkD/orthologr documentation built on Oct. 13, 2023, 12:11 a.m.