inst/tinytest/test-MODISoptions.R

## early exit: download method invalid
expect_error(
  MODISoptions(
    dlmethod = "lynx"
  )
  , pattern = "dlmethod %in% .* is not TRUE"
)

## early exit: download server(s) invalid
expect_error(
  MODISoptions(
    MODISserverOrder = "NSDIC"
    , check_earthdata_login = FALSE
  )
  , pattern = "Provide valid 'MODISserverOrder'"
)

Try the MODIS package in your browser

Any scripts or data that you put into this service are public.

MODIS documentation built on Jan. 6, 2023, 5:10 p.m.