removeDoc

0th

Percentile

Remove a document from a Google Docs account

This function removes a document within a Google Docs repository/account.

Keywords
IO
Usage
removeDoc(doc, con)
Arguments
doc
the name of the document to delete or a GoogleDocument-class returned by getDocs.
con
an object of class GoogleDocumentsConnection or sub-class.
Value

A named integer vector returned by curlPerform.

See Also

getGoogleDocsConnection

Aliases
  • removeDoc
Examples
if(exists("GoogleDocsPassword")) {
          # getGoogleDocsConnection("my login", "my password")

  con = getGoogleDocsConnection(names(GoogleDocsPassword), GoogleDocsPassword)

    # Create a new document
  uploadDoc("1,2,3\n4,5,6\n", con, "Hazel", "CSV", asText = TRUE)
    # Then remove it.
  removeDoc("Hazel", con)
}
Documentation reproduced from package RGoogleDocs, version 0.7-0, License: BSD

Community examples

Looks like there are no examples yet.