removeDoc: Remove a document from a Google Docs account

removeDocR Documentation

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.

Author(s)

Duncan Temple Lang

See Also

getGoogleDocsConnection

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)
}

duncantl/RGoogleDocs documentation built on Nov. 23, 2023, 4:22 p.m.