-
-
Notifications
You must be signed in to change notification settings - Fork 63
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
using both RStan and CmdStanR in quarto - code block tag cmdstan
#921
Comments
There's no such thing as the CmdStan language but RStan is behind so in some sense there are two different languages available to R users. That (up to date syntax) was part of the motivation for CmdStanR in the first place. Also, the |
So I think we need to keep it and fix any bugs, although I don't know why it's not working all of a sudden. Maybe @bearloga (who contributed the initial PR for this) has an idea? |
in which case, the tag should be |
I’m not sure I understand your feedback. How are you proposing that we avoid this “regrettable hack”? Any suggestions would be great. We’re open to ideas for how to support both rstan and cmdstanr in these documents while preserving the functionality that users came to expect from knitr being able to execute the code chunks (that part we don’t have control of, it’s been in knitr itself for ages). |
There definitely could be a better way, I’m just not aware of it, so if anyone has suggestions that would be very helpful. |
I apologize for calling this a regrettable hack. I didn't realize that the functionality in question was code compilation, not syntax highlighting (as the Discourse post subject suggested). my suggestion is that for code blocks which are complete programs and that the user wants to compile, the code block options be made very very explicit. in particular, you could add argument in which case, there's only one syntax tag: depending on the backend, you could then add further compiler options. |
No worries, and thanks for the suggestions! |
It would be great if in the short term there were a way to just get this working like it was before (still don’t know why it stopped working), and then we could consider a replacement along the lines of what @mitzimorris is proposing. |
2 problems:
this isn't working for our users - https://mc-stan.org/cmdstanr/articles/r-markdown.html#option-3-using-both-rstan-and-cmdstanr-in-the-same-r-markdown-document
there is no such thing as "cmdstan" language, so this is just confusing.
why was this needed and can it be gotten rid of?
The text was updated successfully, but these errors were encountered: