Saves the credentials for the web services
set_credentials(user, pass, credential)# S4 method for character,character,missing
set_credentials(user, pass)
# S4 method for character,character,character
set_credentials(user, pass, credential)
nothing. set the credentials in the package environment variable
character argument. Defines the username of an api platform to search or download images
character argument. Defines the password of an api platform to search and download images
optional argument to specify the name of the platform. Valid names are earthdata, scihub, scihubs5p, or ALL
print_credentials()
set_credentials("example", "example")
print_credentials()
set_credentials("example", "example", "earthdata")
print_credentials()
Run the code above in your browser using DataLab