stan-dev / stan-dev/rstan

Error running 8 school example

Open
#748 0 comments 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

I've just installed rstan and all of its dependencies. I completed all of the steps described in the guide to getting started.

However, when I attempt to fit the 8 schools model I get the following error:

Error in dyn.load(libLFile) : 
  unable to load shared object '/var/folders/gq/9syhh2254tj34hcvb_rdplvm0000gn/T//RtmpUJQ846/file10886266470a.so':
  dlopen(/var/folders/gq/9syhh2254tj34hcvb_rdplvm0000gn/T//RtmpUJQ846/file10886266470a.so, 6): Library not loaded: /Library/Frameworks/R.framework/Versions/3.5/Resources/lib/libR.dylib
  Referenced from: /var/folders/gq/9syhh2254tj34hcvb_rdplvm0000gn/T//RtmpUJQ846/file10886266470a.so
  Reason: image not found

RStan Version: 2.19.3
R Version: R version 3.6.2 (2019-12-12)
Operating System: OSX 10.14.6

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 with the RStan Getting Started guide linked in the report and reproduce the 8 schools example using the stated RStan, R, and macOS versions. Investigate the reported dyn.load failure for the generated shared object; done means the example fits successfully without the missing libR.dylib error.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.