I got above-mentioned error while running:
I am using Window system-10, 64bit, R- 3.6.3, RTools 40, rstan 2.19.3
Hey there! Sorry for the delay! Maybe you have already found a solution (hopefully).
If not, could it be this problem: https://discourse.mc-stan.org/t/rstudio-viewer-with-rstan-running-in-parrallel-with-rstudio-1-3/15615?
This is probably not due to the RStudio Viewer bug. See this thread: Error in unserialize(socklist[[n]]) : error reading from connection Error in serialize(data, node$con, xdr = FALSE) : error writing to connection
Give that @sp977 is using R 3.6.3. I think the place to start is to remove the Makevars.win file. Avoid using
-march=native and / or
-mtune=native , as suggested in that thread. However, I suspect there is also going to be conflict with using Rtools40 and R 3.6.3 - I believe Rtools40 is only compatible with R 4.0+
Probably the best thing to do is to updated to 4.0.1+ and Rtools40 completely remove your Makevars.win file… see some of the pinned posts on getting rstan to play nice with R 4.0+
Once you get that all sorted out, then you might run into RstudioViewer issues if you’re not using the current preview version of RStudio (1.3.1054 + )
Thank you @Dalton! Good points :)