RGoogleDocs (version 0.7-0)

removeDoc: Remove a document from a Google Docs account

Description

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

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

Examples

Run this code
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)
}

Run the code above in your browser using DataLab