-
-
Notifications
You must be signed in to change notification settings - Fork 877
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
different way to specify engines {r engine='python'} ->
{python}
#963
Comments
That sounds like a good idea. I'll think about it. Thanks! |
@yihui, do you plan on making this work generally for all language modes, so that e.g. all of the following are valid?
or
Just wondering because on the RStudio side it might be nice to have snippet insertions for each form. |
@kevinushey Yes, it will be a general form like
for all language engines. |
In the interest of adding all arguments, I would like to add this here, which I found out at my side when I implemented chunk options. It seems that knitr uses eval to build the plotting chunk options, so valid R code is possible to be included in the options. Even if you use IMO this is an argument to keep using -> all in all, I still think that file extensions are enough and |
@JanSchulz Thanks! I'm not trying to throw away |
Done. |
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary. |
Re: https://twitter.com/xieyihui/status/571162828528185345
Just because I recently wanted to support
'''{python}
('''{r engine='python'}
->'''{python}
) in a python port of knitr and had to include that in the regex I use:And then in parser.R:36
(this is probably not valid R code... :-/ )
The text was updated successfully, but these errors were encountered: