readDoc

0th

Percentile

Get the contents of a Google Document

getDocContent fetches the contents of a Google Document. readDoc fetches and parses the document, assuming it is HTML or XML. For Presentation documents, i.e. slides/overheads, the result is the PDF content of the document returned as a raw vector with no intepretation. (See grImport if you really want to do something with it in R.)

Keywords
IO
Usage
readDoc(doc, con)
Arguments
doc
the name of the document to be retrieved, or a GoogleDocument object obtained via a call to getDocs.
con
the authenticated connection to Google Docs.
Value

getDocContent returns a character string (vector of length 1). readDoc returns the parsed HTML or XML document as an XMLInternalDocument. If the document is a presentation, the result is a PDF.

See Also

getDocs getGoogleDocsConnection

Aliases
  • readDoc
  • getDocContent
Examples

if(exists("GoogleDocsPassword")) {
          # getGoogleDocsConnection("my login", "my password")

  con = getGoogleDocsConnection(names(GoogleDocsPassword), GoogleDocsPassword)
  # getDoc("Many Parts", con)
  getDocContent("Many Parts", con)

  o = readDoc("Introduction to RGoogleDocs", con)

  docs = getDocs(con)
  readDoc(docs[[1]], con)
}
Documentation reproduced from package RGoogleDocs, version 0.7-0, License: BSD

Community examples

Looks like there are no examples yet.