Running ‘testthat.R’ [44s/113s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(rsat)
  > 
  > test_check("rsat")
  <simpleError in st_crs.character(x): invalid crs: ESRI:54008>
  <simpleError in (function (cond) .Internal(C_tryCatchHelper(addr, 1L, cond)))(structure(list(message = "OGRCreateCoordinateTransformation(): transformation not available",     call = CPL_transform(x, crs, aoi, pipeline, reverse, desired_accuracy,         allow_ballpark), cppstack = NULL), class = c("Rcpp::exception", "C++Error", "error", "condition"))): error in evaluating the argument 'sf.obj' in selecting a method for function 'ls_query': OGRCreateCoordinateTransformation(): transformation not available>
  GDAL Message 1: Recode from CP437 to UTF-8 failed with the error: "Invalid argument".GDAL Message 1: Recode from CP437 to UTF-8 failed with the error: "Invalid argument".[1] "Testing records..."
       Api_name         Portal      Username   Password  
  [1,] "earthexplorer"  "usgs"      "username" "password"
  [2,] "ESPA"           "earthdata" "username" "password"
  [3,] "nasa_inventory" "usgs"      "username" "password"
  [4,] "scihub"         "scihub"    "username" "password"
  [1] "Testing rtoi..."
  Data and variable methods provided by rsat
  Satellite products: ls1, ls2, ls3, ls4, ls5, ls7, ls8, mod09ga, myd09ga, mcd43a4, Sentinel-1, Sentinel-2, Sentinel-3, SY_2_SYN___.
  Variable Methods: EVI, MSAVI2, NBR, NBR2, NDMI, NDVI, NDWI, RGB, SAVI.=====|====|====|====|====|====|====|====|====|====
  --------------------------------------------------
                                                    
  
  =====|====|====|====|====|====|====|====|====|====
  --------------------------------------------------
                                                    
  
  =====|====|====|====|====|====|====|====|====|====
  --------------------------------------------------
                                                    
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • empty test (1)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-download.R:76:3): download test ─────────────────────────────────
  Error: [rast] cannot open file: /tmp/RtmpoVayz6/working_dir/RtmpDgaaxv/Sentinel-2/S2MSI2A/mosaic/2021080/AOT_60m_tmp.tif
  Backtrace:
       █
    1. └─base::tryCatch(...) test-download.R:76:2
    2.   └─base:::tryCatchList(expr, classes, parentenv, handlers)
    3.     └─base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
    4.       └─value[[3L]](cond)
    5.         ├─rsat::rsat_mosaic(navarre) test-download.R:80:4
    6.         └─rsat::rsat_mosaic(navarre)
    7.           ├─rsat::rsat_mosaic(...)
    8.           └─rsat::rsat_mosaic(...)
    9.             └─rsat:::.local(x, ...)
   10.               └─base::tryCatch(...)
   11.                 └─base:::tryCatchList(expr, classes, parentenv, handlers)
   12.                   └─base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   13.                     └─value[[3L]](cond)
  ── Error (test-records.R:16:3): records test ───────────────────────────────────
  <Rcpp::exception/C++Error/error/condition>
  Error in `CPL_transform(x, crs, aoi, pipeline, reverse, desired_accuracy, 
      allow_ballpark)`: OGRCreateCoordinateTransformation(): transformation not available
  Backtrace:
       █
    1. ├─rsat::rsat_search(...) test-records.R:16:2
    2. └─rsat::rsat_search(...)
    3.   └─rsat:::.local(region, product, ...)
    4.     ├─rsat:::mod_search(...)
    5.     └─rsat:::mod_search(...)
    6.       └─rsat:::.local(region, ...)
    7.         ├─rsat:::mod_query(...)
    8.         └─rsat:::mod_query(...)
    9.           └─rsat:::transform_multiple_proj(region, proj4 = st_crs(4326))
   10.             ├─sf::st_transform(new_obj, proj4)
   11.             └─sf:::st_transform.sf(new_obj, proj4)
   12.               ├─sf::st_transform(st_geometry(x), crs, ...)
   13.               └─sf:::st_transform.sfc(st_geometry(x), crs, ...)
   14.                 ├─sf::st_sfc(...)
   15.                 ├─base::structure(...)
   16.                 └─sf:::CPL_transform(...)
  ── Error (test-rtoi.R:32:3): records test ──────────────────────────────────────
  Error in `st_crs.character(x)`: invalid crs: ESRI:54008
  Backtrace:
       █
    1. ├─rsat::rsat_search(...) test-rtoi.R:32:2
    2. └─rsat::rsat_search(...)
    3.   └─rsat:::.local(region, product, ...)
    4.     ├─rsat:::mod_search(...)
    5.     └─rsat:::mod_search(...)
    6.       └─rsat:::.local(region, ...)
    7.         ├─sf::st_transform(mod.tiles, crs = st_crs("ESRI:54008"))
    8.         ├─sf:::st_transform.sf(mod.tiles, crs = st_crs("ESRI:54008"))
    9.         │ ├─sf::st_transform(st_geometry(x), crs, ...)
   10.         │ └─sf:::st_transform.sfc(st_geometry(x), crs, ...)
   11.         └─rsat:::st_crs("ESRI:54008")
   12.           ├─sf::st_crs(x)
   13.           └─sf:::st_crs.character(x)
  
  [ FAIL 3 | WARN 10 | SKIP 1 | PASS 0 ]
  Error: Test failures
  Execution halted