Set credentials for NASA's Earthdata portal
Source:R/set_smap_credentials.R
set_smap_credentials.Rd
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.
Arguments
- 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 = TRUE
.- overwrite
Logical: whether to overwrite previous Earthdata credentials in your .Renviron file (only applies when
save = TRUE
)