R on Windows running in RStudio produces a grossly incorrect result for memory.limit() (which should be in Mb) even though the command works perfect fine in the standard Windows RGui.
Here's what I get in a fresh session in RStudio on a machine with 16 Gb of RAM:
> memory.limit()
[1] 1.759219e+13
> sessionInfo()
R version 3.6.1 (2019-07-05)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 17763)
Matrix products: default
locale:
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C
[5] LC_TIME=English_United States.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] compiler_3.6.1 tools_3.6.1 packrat_0.5.0
and in the RGUI:
> memory.limit()
[1] 16111
which is correct.
Thoughts?