Error: cannot allocate vector of size 13813.6 Gb

Operating System: Windows 10 64bit
Interface Version: RStudio 1.1.456
Compiler/Toolkit: ??

STANs been more than difficult to use for someone who is not tech savvy and just wants to run some class code. First I had to write my own PATH and BINPREFs, and now this. I have yet to be able to run a MCMC sim once.

What information do I need to provide to solve this issue? I am on Windows 10, using 64bit Windows and 64bit Rstudio. I have 32GB of RAM with current usage hovering at 12GB because I have lots of tabs open in Google Chrome.

Typing this into RStudio gets me the following:

memory.limit()
[1] 1.759219e+13
Sys.getenv(“R_ARCH”)
[1] “/x64”

Additionally, after trying to re-run the code again, I get this error instead:

Error in get(“storage”, envir = as.environment(x)) :
object ‘storage’ not found

Edit: I doubt this is an issue with the code itself as I just tried to run a completely different simulation and got the exact same vector error.

Error: cannot allocate vector of size 13813.6 Gb

It would be too much of a coincidence if two completely different data sets and models lead to the same sized memory error.

Thanks for the help and time.