gd_download: Download a Google Document as Markdown or JSON

Description Usage Arguments Value

Description

A small wrapper function for gd_export, which converts the exported file to markdown or JSON using pandoc

Usage

1
2
3
gd_download(doc_id, file_name = tempfile(),
  export_format = getOption("gd.download_format"),
  output_format = "markdown", revision = NA)

Arguments

doc_id

The ID of the Google document

file_name

File path to download to

export_format

The format the document is exported from google using

output_format

The format for the final outputted file

revision

The revision id which you'd like to download the document at. A value of NA (the default) downloads the latest version

Value

If successful, file_name


brendan-r/googdown documentation built on May 13, 2019, 5:09 a.m.