Changelog
Source:NEWS.md
earthdatalogin 0.0.6
CRAN release: 2026-11-18
Breaking changes
earthdataloginno longer supplies shared default credentials. The shared account has expired, and NASA asks that each user log in with their own Earthdata Login account. Credentials now come from theusernameandpasswordarguments, theEARTHDATA_USERandEARTHDATA_PASSWORDenvironment variables, or theurs.earthdata.nasa.goventry in~/.netrc. If none of these provides credentials, functions that need them stop with an error explaining how to register. The package no longer downloadsinst/.Renvironfrom GitHub or falls back to hard-coded credentials.edl_search()searches CMR anonymously when no credentials are available, since CMR search does not require a login.
New features
- New
edl_netrc_check()verifies the credentials stored in a netrc file against Earthdata Login.edl_netrc()now runs this check and warns if the credentials are missing, rejected, or cannot be verified. It returnsTRUEif they were accepted,FALSEif they are missing or rejected, andNAif they could not be verified, all invisibly. Usecheck = FALSEto skip the request (#30, #31, @rupesh2).
Minor improvements and fixes
Requests to the Earthdata Login API (
edl_set_token(),edl_revoke_token()andedl_netrc_check()) retry brief connection failures and server errors up to three times. They never retry 4xx responses such as a 401 for bad credentials, which could lock the account.The deprecated
collections_fetch()warns once instead of once per page.edl_download()now stops with an error when the server returns an HTTP error, and removes the partial file. Previously the"httr"method saved the server’s error page todestwithout complaint, and the"curl"method did the same. The"httr"method also retries brief connection failures and server errors up to three times.edl_netrc()no longer writes to~/.netrcunless GDAL is older than 3.7, which cannot read a netrc file from any other location. Even then it links its own netrc there for the session only when~/.netrcdoes not exist, and it never appends to an existing~/.netrc.
earthdatalogin 0.0.5
CRAN release: 2026-06-19
edl_download(),edl_search(), andedl_netrc()no longer overwrite stored credentials. Previously, calling these without arguments rewrote the.netrcfile with the bundled default credentials, clobbering credentials a user had already set and causing 401 errors. Now the netrc is only (re)written when credentials are supplied explicitly or when no earthdata netrc exists yet (#27, #13).edl_extract_urls()(andedl_search(parse_results = TRUE)) now handle granules with multiple data assets, e.g. one GeoTIFF per band. Previously these failed with “Result must be length 1” (#15).collections_fetch()is deprecated in favor ofrstac::collections_fetch(), which now provides this functionality upstream (#17).
earthdatalogin 0.0.4
CRAN release: 2026-06-12
- Tests no longer attempt network access on CRAN. The
netcdf accesstest now skips on CRAN and when offline, and theget_nasa_stac_url()error-path test is mocked so it runs without network access. This resolves the CRAN check errors introduced when the protected NetCDF download ran on CRAN machines.
earthdatalogin 0.0.3
CRAN release: 2025-07-11
Bugfix for edl_s3_token() (#21), which now requires cookies
Adds support for listing NASA STAC catalogs with
list_nasa_stacs()and retrieving specific catalog URLs withget_nasa_stac_url()(#19).adds experimental support for CMR search with
edl_search(). Does not support all use cases, STAC-based search is still recommended.Adds
collections_fetch()for working with the results of acollections()query using the rstac package. The NASA STAC API by default only return 10 collections for a given catalogue; this function allows you to retrieve them all (#11).Adds
edl_stac_urls()for retrieving urls from anrstacitems list.bugfix for default_auth() behavior if credentials are not supplied.
earthdatalogin 0.0.2
CRAN release: 2023-12-15
-
Adds support for netrc-based authentication.
edl_set_token()works only outside ofus-west-2,edl_s3_token()works only insideus-west-2, netrc works anywhere. Additionally, netrc-based auth does not to be deactivated when accessing non-earthdatalogin URLs.-
edl_netrc()sets up netrc-based access. -
edl_unset_netrc()reverses this, but should rarely be needed.
Using other authentication methods in interactive mode will now prompt users to switch to
edl_netrc()as the default.edl_download()will also use netrc auth by default for greater portability. -
gdal_cloud_config()sets recommended settings for GDAL cloud configuration, see https://gdalcubes.github.io/source/concepts/config.html#recommended-settings-for-cloud-access. By default,edl_netrc()will automatically configure this as well.Because the
gdalcubespackage does not read environmental variables set byedl_netrc()and other authentication methods, a new helper function,with_gdalcubes()will set the gdal configuration for the gdalcubes package.Documentation is also updated.