View source: R/set_smap_credentials.R
set_smap_credentials | R Documentation |
To use smapr, users need to provide NASA Earthdata portal credentials. This function allows users to interactively set these credentials via the user's Earthdata username and password.
set_smap_credentials(username, password, save = TRUE, overwrite = FALSE)
username |
A character string of your Earthdata portal username |
password |
A character string of your Earthdata portal password |
save |
Logical: whether to save your credentials to your
.Renviron file (e.g., ~/.Renviron). Previous Earthdata credentials will not
be overwritten unless |
overwrite |
Logical: whether to overwrite previous Earthdata credentials
in your .Renviron file (only applies when |
If you do not yet have a username and password, register for one here: https://urs.earthdata.nasa.gov/
A warning: do not commit your username and password to a public repository! This function is meant to be used interactively, and not embedded within a script that you would share.
A data.frame with the names of the data files, the remote directory, and the date.
## Not run: set_smap_credentials('myusername', 'mypassword') ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.