-
Notifications
You must be signed in to change notification settings - Fork 26
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
[Organization] Define plugin functions #1
Comments
Shouldn't |
Knitr is the literate programming preprocessor. It replaces the r chunks
|
Ah, I see. I was testing using rmarkdown directly, and it seemed to work fine. |
Maybe we should support both pipelines? |
It seems that in the latest version rmarkdown::render is indeed taking care of calling knitr as you suggested. I guess they are doing it the way they are because they've taken a more organic point of view which embraces, besides other tools, shiny, which generates dynamic html plots from r chunks. This is an effort from the rstudio team that includes the new version of rmarkdown, shiny, and their IDE support for them. Instead, knitr predates this integration effort. It's just an educated guess of mine but I think we should support only one pipeline, people is using this toolset for generating reports that include plots (interactive or static), code and its textual or tabulated ouput, and formatted text in general. From the Rendering Output section in http://rmarkdown.rstudio.com I infer rmarkdown::render is all we need. The previous pipeline knitr -> rmarkdown (was sundown) -> html looks more like rmarkdown -> (pandoc, knitr, shiny) now. I will do some research regarding the new api and let you know about parameters and the like. Presumably render will take lot of parameters to customize both knitr and pandoc. |
Yes, I'm not really groking how knitr is supposed to work. By default, kniting a .Rmd file creates a markdown file that describes more or less what the output of So yes, I think using |
I think rmarkdown is just conducting the orchestra. It's putting a lot of configuration under the hood, making shiny available to the R chunks, offering a number of predefined output formats in a simple way... Considering the difficulty to find the technical documentation (I got it from R shell itself, it doesn't seem to be available in the web yet) I have the feeling that the Rstudio team is all for a convention over configuration approach. Besides that, they've added yaml headers to tinker with the options at the document level, in case it's needed. Maybe they're right, the use cases are pretty well defined and they're providing simple specific interfaces to complex generic tools, albeit with space for further customization. All in all, I conclude that there is no need to provide a complex make command with lots of options, autocompletion, etc. A custom option would be ok, maybe a vimscript function that returns the command to be invoked, defaulting to Regarding the syntax highlighting part, highlighting of correct yaml properties and values could be worthy. I'll gather a list for you. |
The doc for the
|
OK. I think for now it's best to simply provide the rmarkdown pipeline, which is also more similar to pandoc's (basically the same). Our API should cover at least the options for render(). I'll leave further discussion for the other thread about this: #2 Thanks for the info. |
Also, take a look at
I don't think we should deal with this complexity. The user can tweak configuration at the yaml level. Maybe the output file, format, dir, etc, paramters to |
Hm. What about this interface:
This should become
We could parse the commandline so arg[0] defines the filetype, arguments starting with |
Looks great to me but I feel that you are the right person to decide about Btw, I will be travelling tonight so I won't be available online till On Sat, Jul 12, 2014 at 6:28 PM, Felipe Morales [email protected]
|
Since it's you who is going to use this, I wanted to know what looks right. ;) I might travel tomorrow, so I won't be available for a few days. I'll try to make a functional prototype of what we've discussed tonight. |
I've implemented the :RMarkdown command as described above, more or less. To ease up command parsing, I adopted the convention that
Commas are required between arguments. If some error happens, the output of Rscript is shown in a nofile buffer, like in vim-pandoc. |
Just from the top of my mind:
The text was updated successfully, but these errors were encountered: