Global memory options not passed down into brms model

I’m running into an error with a large brms_multiple model (run on ~1.5 million rows). I cannot find much documentation on it. I get this error:

Error in getGlobalsAndPackages(expr, envir = envir, globals = globals) : 
  The total size of the 7 globals exported for future expression (‘FUN(iter = 6000, warmup = 2000, chains = 4)’) is 769.68 MiB.. This exceeds the maximum allowed size of 500.00 MiB (option 'future.globals.maxSize'). The three largest globals are ‘data’ (752.47 MiB of class ‘list’), ‘fit’ (17.19 MiB of class ‘list’) and ‘FUN’ (18.10 KiB of class ‘function’)

This error persists even if I try to set the future.globals.maxsize to be higher than 500 mb:

options(future.globals.maxsize=8000* 1024^3 )

And this error seems to suggest that the global option isn’t being passed down into brms.

  • Operating System:
R version 4.3.3 (2024-02-29 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19045)
  • brms Version: brms_2.21.0

Do note that it should be future.globals.maxSize with capitol S.

Sheesh. Thanks for the correction, that did fix it.