| removeDoc {RGoogleDocs} | R Documentation |
This function removes a document within a Google Docs repository/account.
removeDoc(doc, con)
doc |
the name of the document to delete or a
GoogleDocument-class returned by getDocs. |
con |
an object of class GoogleDocumentsConnection
or sub-class. |
A named integer vector returned by curlPerform.
Duncan Temple Lang
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)
}