Fetch the default Argo mirror using argo_mirror() or set it
using by argo_set_mirror(). The default mirror is set to
https://data-argo.ifremer.fr. You can also set the default mirror
using options("argodata.mirror = "path/to/mirror"). Use
with_argo_mirror() to temporarily change the default mirror.
argo_mirror()
argo_set_mirror(mirror)
with_argo_mirror(mirror, expr)The URL to an Argo mirror or a path to a directory where Argo data has been cached or synced. According to the Argo data access page, The following public mirrors are available:
Use NULL to reset to the default mirror.
An expression to be evaluated with the specified
default mirror.
argo_mirror(): The current default mirror
argo_set_mirror(): The previously-set mirror
with_argo_mirror(): The result of expr evaluated using
mirror as the default mirror.
argo_test_mirror(): A filesystem mirror that contains several
files useful for tests and examples.
argo_mirror()
#> [1] "https://data-argo.ifremer.fr"
with_argo_mirror("ftp://usgodae.org/pub/outgoing/argo/", argo_mirror())
#> [1] "ftp://usgodae.org/pub/outgoing/argo"