Skip to content

LFOD/GMD

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

Google Markdown

Authors: Nick Strayer & Lucy D'Agostino McGowan

License: MIT

Create collaborative R Markdown files in Google Docs and render them in R.

Install

devtools::install_github("LFOD/GMD")

Load GMD

library('GMD')

Demo

Allow for R to access your Google Doc

token <- get_auth()

Copy the URL you see when editing your Google Doc & use our function GMD to render it as an .Rmd file. For example:

edit_url <- "https://docs.google.com/document/d/1RTCQ67mpZTKe9ddllVNCBom5uC2KMFjktKHb1mjWKOM/edit"
my_doc <- GMD(doc = edit_url, token)
my_doc()

By default, this will add a .Rmd file to your current working directory. If you would like to change this location, you can use the setwd() command.

If you would like it to update continuously

live_update(my_doc)

If you ❤️ pipes

edit_url <- "https://docs.google.com/document/d/1RTCQ67mpZTKe9ddllVNCBom5uC2KMFjktKHb1mjWKOM/edit"
edit_url %>%
 GMD(token) %>%
 render_doc(output_format = "html_document")

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • R 100.0%