stan-dev / stan-dev/rstan

Error message with no internet connection

Open
#974 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
R
Stars
1.1k
Forks
266
Avg merge
2h 56m
Merged PRs (30d)
1

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in rstan/rstan/R/stanc.R at the cited lines 60 and 139, and trace how stan calls stanc_beta through try() when internet access is unavailable. Check the existing return and error behavior, then confirm that the completed behavior avoids reporting an error for this non-error path without internet access.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.