gdoc_push: Push a markdrive controlled markdown file back to Google...

Description Usage Arguments Details Value Examples

View source: R/gd_interface.R

Description

Given a filename, this funciton will search for previously checked out files that match. A selection menu is output if there is more than 1 match.

Usage

1
gdoc_push(filename, preserve_whitespace = TRUE)

Arguments

filename

a complete or partial filename to be searched for in the '.markdrive/' folder under the current working directory

preserve_empty_lines

If TRUE empty whitespace lines are preserved in the translation to Google doc. This is most likely what you want if you use empty lines in your online document. If you want to write PURE markdown, and handle this yourself with <br> etc, Set to FALSE.

Details

Once the file to be pushed is identified, the md is converted to html with pandoc and uploaded to Google drive as the new 'media' for the checked out file.

Value

a fresh handle to the updated file.

Examples

1
2
3
4
5
/dontrun{
gdoc_push("GOT")
#Pushes the local file "my GOT theory.md" as an update to the remote Google doc
"my GOT theory"
}

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