The resulting connection object is also stored in the package-local
environment from which the (internal) helper function
.getDefaultConnection() retrieves it as needed.
1 2 3
User name (ex.: [email protected]); alternatively the
Account password; alternatively the environment
Logical for displaying additional information
If the environment variables
GOOGLE_PASSWORD are set, they will be retrieved in case no
argument has been supplied. Similarly, the environment variable
options("google.password") can be
used. Lastly, if the environment variable
is set to (the text string) ‘TRUE’, or the the R option
options("google.autoconnect") is set to ‘TRUE’ then
the connection is automatically made at package load.
A libcurl handle is returned (invisibly).
Should you have trouble connecting, and also use two-factor authentication on your Google Account, then consider creating another Google account (without two-factor authentication) which should allow automated (i.e. programmatic) connection here.
1 2 3 4 5 6 7 8 9 10
## Not run: # use with explicit arguments session <- gconnect("[email protected]", "psw") # use with arguments stored in env.var or options() # this is preferred for scripts shared with others who # can place their secret password in a file only they know session <- gconnect("[email protected]", "psw") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.