how to adjust future.global.maxSize in R? -
can me figure out how change max size of global objects passed item in future package?
here's useless example shows point
library(future) = 1:200000000 object.size(a) test %<-% head(a) i following error:
error in getglobalsandpackages(expr, envir = envir, persistent = persistent, : total size of global objects need exported future expression (‘head(a)’) 762.95 mib. exceeds maximum allowed size of 500.00 mib (option 'future.global.maxsize'). there 2 globals: ‘a’ (762.94 mib of class ‘numeric’) , ‘head’ (10.05 kib of class ‘function’).
can me understand how adjust future.global.maxsize option? tried options(future.global.maxsize = 1500000) didn't work.
got figured out , learned how can edit options package.
this line used:
options(future.globals.maxsize= 891289600) if want customize limit, saw in package source limit calculated , how calculate size 850mb limit:
850*1024^2 = 891289600 thanks!
Comments
Post a Comment