Skip to content

Commit

Permalink
Workaround for large object size
Browse files Browse the repository at this point in the history
  • Loading branch information
ycl6 committed Dec 12, 2024
1 parent 568e39a commit 11d04a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/globals.R
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ getGlobalsAndPackages <- function(expr, envir = parent.frame(), tweak = tweakExp
sizes <- lapply(globals, FUN = objectSize)
sizes <- unlist(sizes, use.names = TRUE)
total_size <- sum(sizes, na.rm = TRUE)
attr(globals, "total_size") <- total_size
attr(globals, "total_size") <- as.numeric(total_size)
msg <- summarize_size_of_globals(globals, sizes = sizes,
maxSize = maxSize, exprOrg = exprOrg,
debug = debug)
Expand Down

0 comments on commit 11d04a5

Please sign in to comment.