Skip to contents

Reads the Earthdata Login credentials from a netrc file (as created by edl_netrc()) and verifies them against the Earthdata Login API.

Usage

edl_netrc_check(netrc_path = edl_netrc_path(), timeout = 10)

Arguments

netrc_path

Path to the .netrc file to be created. Defaults to the appropriate R package configuration location given by tools::R_user_dir().

timeout

seconds to wait for a response from Earthdata Login.

Value

Invisibly, TRUE if the credentials were accepted, FALSE if the netrc file is missing or the credentials were rejected, and NA if the check could not be completed (e.g. no network access).

Examples

if (FALSE) { # interactive()

edl_netrc_check()
}