set_credentials | R Documentation |
Saves the credentials for the web services
set_credentials(user, pass, credential)
## S4 method for signature 'character,character,missing'
set_credentials(user, pass)
## S4 method for signature 'character,character,character'
set_credentials(user, pass, credential)
user |
character argument. Defines the username of an api platform to search or download images |
pass |
character argument. Defines the password of an api platform to search and download images |
credential |
optional argument to specify the name of the platform. Valid names are earthdata, scihub, scihubs5p, or ALL |
nothing. set the credentials in the package environment variable
print_credentials()
set_credentials("example", "example")
print_credentials()
set_credentials("example", "example", "earthdata")
print_credentials()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.