Package check result: OK Changes to worse in reverse depends: Package: medfateland Check: examples New result: ERROR Running examples in ‘medfateland-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: spwb_land_day > ### Title: One-day watershed simulations > ### Aliases: spwb_land_day growth_land_day > > ### ** Examples > > # Load example watershed data after burnin period > data("example_watershed_burnin") > > # Set request for daily model results in cells number 3, 6 (outlet) and 9 > example_watershed_burnin$result_cell <- FALSE > example_watershed_burnin$result_cell[c(3,6,9)] <- TRUE > > # Get bounding box to determine limits > b <- sf::st_bbox(example_watershed_burnin) > b xmin ymin xmax ymax 401430 4671870 402830 4672570 > > # Define a raster topology, using terra package, > # with the same CRS as the watershed. In this example cells have 100 m side. > # Coordinates in the 'sf' object are assumed to be cell centers > r <-terra::rast(xmin = 401380, ymin = 4671820, xmax = 402880, ymax = 4672620, + nrow = 8, ncol = 15, crs = "epsg:32631") > > # Load example meteo data frame from package meteoland > data("examplemeteo") > > # Load default medfate parameters > data("SpParamsMED") > > # Watershed control parameters (TETIS model; Frances et al. 2007) > ws_control <- default_watershed_control("tetis") > > # Launch simulation > date <- "2001-03-01" > sf_out <- spwb_land_day(r, example_watershed_burnin, SpParamsMED, examplemeteo, + date = date, + watershed_control = ws_control) ── Simulation of model 'spwb' over a watershed for day '2001-03-01' ──────────── ℹ Checking topology ✔ Checking topology [13ms] ℹ Checking 'sf' data ✔ Checking 'sf' data [47ms] ℹ Determining neighbors and discharge for TETIS ✔ Determining neighbors and discharge for TETIS [20ms] • Hydrological model: TETIS • Number of grid cells: 120 Number of target cells: 66 • Average cell area: 10006 m2, Total area: 120 ha, Target area: 66 ha • Cell land use wildland: 48 agriculture: 17 artificial: 0 rock: 1 water: 0 • Cells with soil: 65 • Number of cells with daily model results requested: 3 • Number of outlet cells: 1 ℹ Building spwb input ✔ Building spwb input [7ms] ℹ 0 cells needed initialization Package 'meteoland' [ver. 2.2.2] Error in medfate::spwb_day(xi$x, date, xi$meteovec, latitude = xi$latitude, : Index out of bounds: [index='internalCommunication']. Calls: spwb_land_day ... .watershedDayTetis -> .f_landunit_day -> ✖ 0 cells needed initialization [35ms] Execution halted