removeDoc | 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
|
con |
an object of class |
A named integer vector returned by curlPerform
.
Duncan Temple Lang
getGoogleDocsConnection
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)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.