rstan icon indicating copy to clipboard operation
rstan copied to clipboard

Error message with no internet connection

Open elong0527 opened this issue 4 years ago • 1 comments

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 avatar Oct 21 '21 17:10 elong0527

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

rstan_options(javascript = FALSE)

elong0527 avatar Oct 21 '21 17:10 elong0527