This package contains an R Markdown template for compiling and uploading .Rmd
files to Google Docs. It is an experiment produced at the
ROpenSci 2016 Unconf.
devtools::install_github('ropenscilabs/gdoc')
The gtemplate()
function will create a test document with default name
test.Rmd
.
my_rmd = gtemplate()
Render your file:
rmarkdown::render(my_rmd)
Or, for any file:
library(gdoc)
rmarkdown::render(my_rmd, output_format=gdoc())
If you want to use the RStudio "Knit" button to render, you'll have to pre-authenticate with Google Docs before knitting, like so:
`gd_auth()`