Get or set the Quantarctica download mirror site to use

qa_mirror(mirror)

Arguments

mirror

string: the URL of the mirror to use

Value

If called with no arguments, the current mirror URL will be returned as a string. If called with a mirror argument, the mirror will be set to that and then the mirror URL returned.

See also

Examples


## current mirror
qa_mirror()
#> [1] "https://media.npolar.no/download/quantarctica/Quantarctica3/"

## all available mirrors
qa_mirrors()
#> # A tibble: 4 × 3
#>   country   protocol url                                                        
#>   <chr>     <chr>    <chr>                                                      
#> 1 Norway    http     https://media.npolar.no/download/quantarctica/Quantarctica…
#> 2 Australia ftp      ftp://quantarctica.tpac.org.au/quantarctica/Quantarctica3/ 
#> 3 Australia http     http://quantarctica.tpac.org.au/quantarctica/Quantarctica3/
#> 4 Japan     http     https://ads.nipr.ac.jp/gis/quantarctica/Quantarctica3/     

## set to first mirror in that list
qa_mirror(qa_mirrors()$url[1])
#> [1] "https://media.npolar.no/download/quantarctica/Quantarctica3/"

## or equivalently
qa_mirror(qa_mirrors()[1, ])
#> [1] "https://media.npolar.no/download/quantarctica/Quantarctica3/"