set_credentials {rsat} | R Documentation |
Saves the credentials for the web services
Description
Saves the credentials for the web services
Usage
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)
Arguments
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 |
Value
nothing. set the credentials in the package environment variable
Examples
print_credentials()
set_credentials("example", "example")
print_credentials()
set_credentials("example", "example", "earthdata")
print_credentials()
[Package rsat version 0.1.21 Index]