gdoc_checkout: Checkout a google document in Markdown format

Description Usage Arguments Details Value Examples

View source: R/gd_interface.R

Description

Given a filename this funciton will search for a matching file on your Google drive. If more than one match is found you will get a menu to choose from. If too many maches are found the function will stop.

Usage

1
gdoc_checkout(filename)

Arguments

filename

a complete or partial filename to be searched for on your Google drive.

Details

Once the target file has been identified it will be downloaded in docx format into a hidden folder '.markdrive/' created under the current working directory. Pandoc is used to convert the docx to .md and the result is placed in the current working directory. File metadata mapping the .md to the remote source is saved in the markdrive folder.

Value

a googledrive dribble augmented with a new column 'local_md' and new class "markdown_doc"

Examples

1
2
3
4
5
## Not run: 
 gdoc_checkout("GOT")
 #Check out a file matching "GOT", e.g. "my GOT theory"

## End(Not run)

MilesMcBain/markdrive documentation built on May 28, 2019, 2:33 a.m.