if(exists("GoogleDocsPassword")) {
con = getGoogleDocsConnection(names(GoogleDocsPassword), GoogleDocsPassword)
# for all documents
con = getGoogleDocsConnection("dtemplelang@gmail.com", "my password")
# for spreadsheets
con = getGoogleDocsConnection("dtemplelang@gmail.com", "my password", "wise")
# Getting auth separately.
auth = getGoogleAuth("dtemplelang@gmail.com", "my password", "wise")
con = getGoogleDocsConnection(auth)
con = getGoogleDocsConnection(auth = auth)
}
Run the code above in your browser using DataCamp Workspace