Skip to content

LucyMcGowan/GMD

Folders and files

NameName
Last commit message
Last commit date

Latest commit

a62fe02 · Feb 7, 2017

History

36 Commits
Feb 4, 2017
Feb 4, 2017
Feb 3, 2017
Feb 4, 2017
Feb 3, 2017
Feb 4, 2017
Feb 3, 2017
Feb 2, 2017
Feb 4, 2017
Feb 3, 2017
Feb 3, 2017
Feb 4, 2017
Feb 4, 2017

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

Until we build our own authentication, use the lovely Jenny Bryans:

token <- googlesheets::gs_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 are into 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