stan-dev / rstan

RStan, the R interface to Stan
https://mc-stan.org
1.04k stars 265 forks source link

Error message with no internet connection #974

Open elong0527 opened 2 years ago

elong0527 commented 2 years ago

The code below will result in error message when we work on a computer without internet connection (within company firewall)

https://github.com/stan-dev/rstan/blob/da2fc9c079534a82d3d26adda51ad17bf22f5e2b/rstan/rstan/R/stanc.R#L139

Could we have an option to avoid running the code as the stan function seems did not return any value from stanc_beta

Note: the stanc_beta is called within try() and does not return any value. So the error message is not actually an ERROR for stan function.

https://github.com/stan-dev/rstan/blob/da2fc9c079534a82d3d26adda51ad17bf22f5e2b/rstan/rstan/R/stanc.R#L60

elong0527 commented 2 years ago

The code below seems address the issue. But this option is not documented in the rstan_options help page.

rstan_options(javascript = FALSE)