Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in R/example.R #121

Closed
salleuska opened this issue May 11, 2023 · 1 comment · Fixed by #122
Closed

Error in R/example.R #121

salleuska opened this issue May 11, 2023 · 1 comment · Fixed by #122

Comments

@salleuska
Copy link

When I run the R example I got this error

Error in initialize(...) : unused argument (0)

From the function help I think the 0 is an extra argument here

model <- StanModel$new("../test_models/bernoulli/bernoulli_model.so", "../test_models/bernoulli/bernoulli.data.json", 1234, 0)

@WardBrian
Copy link
Collaborator

Yes, your diagnosis is correct! At one point this took four arguments, and we forgot to update the example

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants