* using log directory 'd:/Rcompile/CRANpkg/local/4.0/MODIS.Rcheck' * using R version 4.0.5 (2021-03-31) * using platform: x86_64-w64-mingw32 (64-bit) * using session charset: ISO8859-1 * checking for file 'MODIS/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'MODIS' version '1.2.3' * package encoding: UTF-8 * checking package namespace information ... OK * checking package dependencies ... OK * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'MODIS' can be installed ... OK * checking installed package size ... OK * checking package directory ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... OK * checking for left-over files ... OK * checking index information ... OK * checking package subdirectories ... OK * checking R files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the package can be unloaded cleanly ... OK * checking whether the namespace can be loaded with stated dependencies ... OK * checking whether the namespace can be unloaded cleanly ... OK * checking loading without being on the library search path ... OK * checking use of S3 registration ... OK * checking dependencies in R code ... OK * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... [26s] OK * checking Rd files ... OK * checking Rd metadata ... OK * checking Rd cross-references ... OK * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... OK * checking Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking R/sysdata.rda ... OK * checking examples ... [10s] ERROR Running examples in 'MODIS-Ex.R' failed The error most likely occurred in: > ### Name: getTile > ### Title: Get MODIS Tile ID(s) > ### Aliases: getTile getTile,missing,missing,missing-method > ### getTile,missing,charORnum,charORnum-method > ### getTile,character,ANY,ANY-method getTile,character-method > ### getTile,Raster,ANY,ANY-method getTile,Raster-method > ### getTile,map,ANY,ANY-method getTile,map-method > ### getTile,Extent,ANY,ANY-method getTile,Extent-method > ### getTile,bbox,ANY,ANY-method getTile,bbox-method > ### getTile,Spatial,ANY,ANY-method getTile,Spatial-method > ### getTile,sf,ANY,ANY-method getTile,sf-method > > ### ** Examples > > ## Not run: > ##D # ex 1 ############ > ##D # interactive tile selection > ##D getTile() > ##D getTile(mode = "draw") > ## End(Not run) > > # ex 2: Spatial (taken from ?rgdal::readOGR) ############ > dsn <- system.file("vectors/Up.tab", package = "rgdal")[1] > Up <- rgdal::readOGR(dsn, "Up") Warning in OGRSpatialRef(dsn, layer, morphFromESRI = morphFromESRI, dumpSRS = dumpSRS, : Discarded datum South_American_Datum_1969 in Proj4 definition: +proj=utm +zone=23 +south +ellps=aust_SA +units=m +no_defs OGR data source with driver: MapInfo File Source: "D:\temp\RtmpSQ6ajF\RLIBS_1147013dd4daf\rgdal\vectors\Up.tab", layer: "Up" with 81 features It has 52 fields > getTile(Up) Error: Problem with `filter()` input `..1`. i Input `..1` is `lengths(.predicate(x, y, ...)) > 0`. x Evaluation error: Found 4 features with invalid spherical geometry. [13] Loop 0 is not valid: Edge 1 crosses edge 6 [18] Loop 0 is not valid: Edge 0 crosses edge 5 [446] Loop 0 is not valid: Edge 1 crosses edge 4 [451] Loop 0 is not valid: Edge 2 crosses edge 5. Backtrace: x 1. +-MODIS::getTile(Up) 2. +-MODIS::getTile(Up) 3. | +-MODIS::getTile(sf::st_as_sf(x), ...) 4. | \-MODIS::getTile(sf::st_as_sf(x), ...) 5. | +-base::suppressMessages(sf::st_filter(sr, x)) 6. | | \-base::withCallingHandlers(...) 7. | +-sf::st_filter(sr, x) 8. | \-sf:::st_filter.sf(sr, x) 9. | +-dplyr::filter(x, lengths(.predicate(x, y, ...)) > 0) 10. | +-sf:::filter.sf(x, lengths(.predicate(x, y, ...)) > 0) 11. | | \-sf:::.re_sf(...) 12. | | \-base::stopifnot(...) 13. | +-base::NextMethod() 14. | \-dplyr:::filter.data.frame(...) 15. | \-dplyr:::filter_rows(.data, ..., caller_env = caller_env()) 16. | +-base::withCallingHandlers(...) 17. | \-mask$eval_all_filter(dots, env_filter) 18. +-base::lengths(.predicate(x, y, ...)) 19. +-sf:::.predicate(x, y, ...) 20. +-sf:::st_intersects.sf(x, y, ...) 21. | \-sf:::st_geos_binop(...) 22. | \-s2:::fn(x, y, s2::s2_options(model = s2_model, ...)) 23. | +-s2:::cpp_s2_intersects_matrix(...) 24. | +-s2::as_s2_geography(x) 25. | \-sf:::as_s2_geography.sf(x) 26. | \-sf:::st_as_s2.sf(x, ..., oriented = oriented) 27. | +-sf::st_as_s2(st_geometry(x), ...) 28. | \-sf:::st_as_s2.sfc(st_geometry(x), ...) 29. | +-s2::as_s2_geography(st_as_binary(x), ..., oriented = oriented) 30. | \-s2:::as_s2_geography.WKB(st_as_binary(x), ..., oriented = oriented) 31. | +-s2:::new_s2_xptr(...) 32. | \-s2:::s2_geography_from_wkb(x, oriented = oriented, check = check) 33. +-base::stop(...) 34. \-(function (e) ... Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... [8s] ERROR Running 'tinytest.R' [8s] Running the tests in 'tests/tinytest.R' failed. Complete output: > > if ( requireNamespace("tinytest", quietly=TRUE) ){ + tinytest::test_package("MODIS") + } Loading required package: mapdata Loading required package: maps Loading required package: raster Loading required package: sp Running test-EarthdataLogin.R......... 0 tests Running test-EarthdataLogin.R......... 0 tests Running test-EarthdataLogin.R......... 0 tests Running test-EarthdataLogin.R......... 1 tests OK Running test-EarthdataLogin.R......... 1 tests OK Running test-EarthdataLogin.R......... 1 tests OK Running test-EarthdataLogin.R......... 2 tests OK Running test-EarthdataLogin.R......... 3 tests OK Running test-EarthdataLogin.R......... 3 tests OK Running test-EarthdataLogin.R......... 3 tests OK Running test-EarthdataLogin.R......... 4 tests OK Running test-EarthdataLogin.R......... 4 tests OK Running test-EarthdataLogin.R......... 4 tests OK Running test-EarthdataLogin.R......... 5 tests OK Running test-EarthdataLogin.R......... 5 tests OK 94ms Running test-extractDate.R............ 0 tests Running test-extractDate.R............ 1 tests OK Running test-extractDate.R............ 2 tests OK Running test-extractDate.R............ 2 tests OK Running test-extractDate.R............ 3 tests OK Running test-extractDate.R............ 3 tests OK Running test-extractDate.R............ 4 tests OK 47ms Running test-genString.R.............. 0 tests Running test-genString.R.............. 0 tests Running test-genString.R.............. 1 tests OK Running test-genString.R.............. 2 tests OK Running test-genString.R.............. 2 tests OK Running test-genString.R.............. 3 tests OK Running test-genString.R.............. 3 tests OK 78ms Running test-getCollection.R.......... 1 tests OK 1.5s Running test-getProduct.R............. 1 tests OK 16ms Running test-getSds.R................. 0 tests Running test-getSds.R................. 0 tests Running test-getSds.R................. 3 tests OK Running test-getSds.R................. 3 tests OK Running test-getSds.R................. 3 tests OK Running test-getSds.R................. 9 tests OK 31ms Running test-getTile.R................ 0 tests Running test-getTile.R................ 0 tests Error: Problem with `filter()` input `..1`. i Input `..1` is `lengths(.predicate(x, y, ...)) > 0`. x Evaluation error: Found 4 features with invalid spherical geometry. [13] Loop 0 is not valid: Edge 1 crosses edge 6 [18] Loop 0 is not valid: Edge 0 crosses edge 5 [446] Loop 0 is not valid: Edge 1 crosses edge 4 [451] Loop 0 is not valid: Edge 2 crosses edge 5. Backtrace: x 1. +-tinytest::test_package("MODIS") 2. | \-tinytest::run_test_dir(...) 3. | \-base::lapply(...) 4. | \-tinytest:::FUN(X[[i]], ...) 5. | \-base::eval(expr, envir = e) 6. | \-base::eval(expr, envir = e) 7. | +-tinytest::expect_null(getTile(pts[1, ])@target$extent, info = "target extent defaults to full tile for single point feature") 8. | | \-tinytest:::fun(...) 9. | +-MODIS::getTile(pts[1, ]) 10. | \-MODIS::getTile(pts[1, ]) 11. | +-base::suppressMessages(sf::st_filter(sr, x)) 12. | | \-base::withCallingHandlers(...) 13. | +-sf::st_filter(sr, x) 14. | \-sf:::st_filter.sf(sr, x) 15. | +-dplyr::filter(x, lengths(.predicate(x, y, ...)) > 0) 16. | +-sf:::filter.sf(x, lengths(.predicate(x, y, ...)) > 0) 17. | | \-sf:::.re_sf(...) 18. | | \-base::stopifnot(...) 19. | +-base::NextMethod() 20. | \-dplyr:::filter.data.frame(...) 21. | \-dplyr:::filter_rows(.data, ..., caller_env = caller_env()) 22. | +-base::withCallingHandlers(...) 23. | \-mask$eval_all_filter(dots, env_filter) 24. +-base::lengths(.predicate(x, y, ...)) 25. +-sf:::.predicate(x, y, ...) 26. +-sf:::st_intersects.sf(x, y, ...) 27. | \-sf:::st_geos_binop(...) 28. | \-s2:::fn(x, y, s2::s2_options(model = s2_model, ...)) 29. | +-s2:::cpp_s2_intersects_matrix(...) 30. | +-s2::as_s2_geography(x) 31. | \-sf:::as_s2_geography.sf(x) 32. | \-sf:::st_as_s2.sf(x, ..., oriented = oriented) 33. | +-sf::st_as_s2(st_geometry(x), ...) 34. | \-sf:::st_as_s2.sfc(st_geometry(x), ...) 35. | +-s2::as_s2_geography(st_as_binary(x), ..., oriented = oriented) 36. | \-s2:::as_s2_geography.WKB(st_as_binary(x), ..., oriented = oriented) 37. | +-s2:::new_s2_xptr(...) 38. | \-s2:::s2_geography_from_wkb(x, oriented = oriented, check = check) 39. +-base::stop(...) 40. \-(function (e) ... Execution halted * checking PDF version of manual ... OK * DONE Status: 2 ERRORs