Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Render R Presentation from the command line

Is there a way to create an R presentation from the command line?

https://support.rstudio.com/hc/en-us/articles/200486468-Authoring-R-Presentations

I have the following R Presentation file stored in my_file.RPres file.

Title
========================================================
author: Me
date: Jan 9, 2015
transition: none
css: template.css

This is my presentation.

Is there any way to specify on rmarkdown::render(), knit(), pandoc(), or another R command, that this is an "R Presentation" .RPres file, and not ioslides_presentation, beamer_presentation, or slidy_presentation?

My .RPres file does not have any YAML metadata on the header, and the .css file was created based on the html file generated by RStudio with "Preview" and "Save As a Web page...".

like image 738
user3874377 Avatar asked Jan 13 '15 19:01

user3874377


1 Answers

I asked this question in on RStudio Support Community page, and the 'official' answer was no. A colleague looked at the code on github and verified the method is only called from the drop down UI. Looks like to do this you would have to actually compile your own wrapper.

like image 127
DaveH Avatar answered Nov 15 '22 08:11

DaveH