stan-dev / stan-dev/rstan

rstan is not a S4 object

Open
#650 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

Summary:

I install successfully rstan on macOS and linux. The former could compute but the latter ran immediately in an error after the the beginning of the sampling.

Description:
SAMPLING FOR MODEL 'lda' NOW (CHAIN 4).
Error in FUN(X[[i]], ...) : 
  trying to get slot "mode" from an object (class "try-error") that is not an S4 object 
Calls: stan ... sampling -> sampling -> .local -> sapply -> lapply -> FUN
In addition: Warning message:
In parallel::mclapply(1:chains, FUN = callFun, mc.preschedule = FALSE,  :
  4 function calls resulted in an error
Execution halted
RStan Version:

2.18.2

R Version:

3.4.4

Operating System:

macOS 10.14.5
ubuntu 18.04.2

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 by reproducing the reported sampling failure on Ubuntu 18.04.2 with RStan 2.18.2 and R 3.4.4, comparing it with the successful macOS run. Investigate the parallel sampling path shown in the error and verify that the lda model completes without the non-S4-object error.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.