Read the SciHub login information or save new username and
password. Login information is stored in a file apihub.txt
inside the
directory of s2download
. This functions allow to read or write this
file, and to edit them from inside the GUI.
Remember that, in case login information is not provided, default user
username and user
password are used, but this can cause timeouts, since
a limit of two parallel downloads per user exists.
read_scihub_login(apihub_path = NA) write_scihub_login(username, password, apihub_path = NA, append = FALSE)
apihub_path | Path of the file in which login information is saved.
If NA (default) it is automatically read from |
---|---|
username | SciHub username. |
password | SciHub password. |
append | Logical: if TRUE, new credentials are added
to the ones existing within |
License: GPL 3.0