Skip to content

Commit

Permalink
Update get_ram.R (#51)
Browse files Browse the repository at this point in the history
fix for #49
  • Loading branch information
ptompalski committed May 6, 2024
1 parent 02104f7 commit b636d6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/get_ram.R
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ system_ram = function(os) {
get_ram = function() {
os = R.version$os
ram = suppressWarnings(try(system_ram(os), silent = TRUE))
if (inherits(ram, "try-error") || length(ram) == 0L || is.na(ram)) {
if (inherits(ram, "try-error") || length(ram) == 0L || any(is.na(ram))) {
message("\t Unable to detect your RAM. # nocov
Please raise an issue at https://github.com/csgillespie/benchmarkme") # nocov
ram = structure(NA, class = "ram") # nocov
Expand Down

0 comments on commit b636d6e

Please sign in to comment.