-
-
Notifications
You must be signed in to change notification settings - Fork 879
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
Adds a Generic Engine #1829
Adds a Generic Engine #1829
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I definitely like the idea of providing a generic engine to run arbitrary commands. There are a couple of issues with the current implementation, but I don't have time at the moment to mention all of them. I'll revisit this PR in a few weeks. The main problem in my eyes is the templating syntax {}
, which may not be robust or flexible. I'd probably consider using sprintf()
and %s
. Thank you!
|
Hi @TianyiShi2001, I want to let you know that we have just provided a generic engine for executing commands, and you can find the documentation and examples at https://github.com/yihui/knitr-examples/blob/master/124-exec-engine.Rmd. Please feel free to let us know if you have any suggestions or comments. Many thanks for your original idea! |
A generic engine that make it possible to run any language using custom commands.
This is just a quick-and-dirty implementation (from conception to implementation in one night). If you find this interesting, please post your comments here so I can go ahead and add more features/make it more robust.