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

model issue #1469

Closed
h-alani opened this issue Nov 24, 2024 · 4 comments
Closed

model issue #1469

h-alani opened this issue Nov 24, 2024 · 4 comments

Comments

@h-alani
Copy link

h-alani commented Nov 24, 2024

foi <- stan_model("Seromodel_lambda1.stan")
Error in stanc(file = file, model_code = model_code, model_name = model_name, :
0
Internal compiler error:
TypeError: e.charCodeAt is not a function

This should never happen. Please file a bug at https://github.com/stan-dev/stanc3/issues/new
and include this message and the model that caused this issue.

@h-alani
Copy link
Author

h-alani commented Nov 24, 2024

I received the above error after running the code. Any help, please?

@WardBrian
Copy link
Member

Hi @h-alani -- We're sorry you ran into this. This is an issue with rstan and their javascript interpreter. We don't believe there is anything more stanc3 can do.

Duplicate: #1446

@h-alani
Copy link
Author

h-alani commented Dec 10, 2024

I have realized that the error I received below only occurs after updating my R and R studio. I ran the same code on previous versions and it worked. How do I fix this, please?

foi_accra <- stan_model("Seromodel_lambda1.stan")
Error in stanc(file = file, model_code = model_code, model_name = model_name, :
parser failed badly; maybe try installing the V8 package

@WardBrian
Copy link
Member

Please provide any more information (including R, Rstudio versions and operating system) at stan-dev/rstan#1145

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

No branches or pull requests

2 participants