I’m building a test package in R using Stan. I can run my model fine with one chain. However, when I run more than one chain (with multiple cores) I get the message below (my model is called model_logistic and StanTest is the package name) for each newly created worker:
Warning: namespace ‘StanTest’ is not available and has been replaced
by .GlobalEnv when processing object ‘’
Error in checkForRemoteErrors(val) :
5 nodes produced errors; first error: object ‘model_logistic’ not found
I tried building and reloading as described in the link below but that didn’t work.