render_site compatibility with Rmd params. #904
@jjallaire I used "output_files" as you suggested. Feel free to suggest changes, although I do not have much more time to devote to this.
output_files: flights_domestic.html: src: "flights_analysis.Rmd" params: flight_type: "domestic" flights_international.html: src: "flights_analysis.Rmd" params: flight_type: "international"
output_files: flights_domestic.html: src: "flights_analysis.R"
I already signed the contribution agreement when I submitted my previous PR (#647)
Comments, patches and merges are very welcome
render_site understands the `output_files` field in the `_site.yml` file to describe which source file should an html file use and give Rmd parameters if needed. (closes #903) The output_files feature can be used as well to set as source for an html file a R script that will be spinned. This commit also adds a `autospin` field in `_site.yml` that, if set to `true` will render all the `R` scripts spinning them first (closes #892)
Sorry for not coming back earlier, we are all a bit too busy I guess...
I rebased this rather old PR that offers the possibility to render Rmd files with parameters with
Would you still be willing to review and merge this?
There is a breaking change in this PR, as it changes the
The autospin feature was nice, so I will try to create a new PR for that exclusively