Error(s) in re-building vignettes:
  ...
--- re-building 'ecochange_vignette.Rmd' using rmarkdown
Loading required package: ecochange
Loading required package: raster
Loading required package: sp
Loading required package: rgeos
rgeos version: 0.5-8, (SVN revision 679)
 GEOS runtime version: 3.9.1-CAPI-1.14.2 
 Please note that rgeos will be retired by the end of 2023,
plan transition to sf functions using GEOS at your earliest convenience.
 GEOS using OverlayNG
 Linking to sp version: 1.4-5 
 Polygon checking: TRUE 

Loading required package: ggplot2
Loading required package: sf
Linking to GEOS 3.9.1, GDAL 3.3.2, PROJ 7.2.1
Loading required package: gdalUtils

Attaching package: 'gdalUtils'

The following object is masked from 'package:sf':

    gdal_rasterize

Package 'ecochange' version 2.2
Type 'citation("ecochange")' for citing this R package in publications.
Loading required package: rgdal
Please note that rgdal will be retired by the end of 2023,
plan transition to sf/stars/terra functions using GDAL and PROJ
at your earliest convenience.

rgdal: version: 1.5-27, (SVN revision 1148)
Geospatial Data Abstraction Library extensions to R successfully loaded
Loaded GDAL runtime: GDAL 3.3.2, released 2021/09/01
Path to GDAL shared files: /usr/share/gdal
GDAL binary built with GEOS: TRUE 
Loaded PROJ runtime: Rel. 7.2.1, January 1st, 2021, [PJ_VERSION: 721]
Path to PROJ shared files: /home/hornik/.local/share/proj:/usr/share/proj
PROJ CDN enabled: FALSE
Linking to sp version:1.4-5
To mute warnings of possible GDAL/OSR exportToProj4() degradation,
use options("rgdal_show_exportToProj4_warnings"="none") before loading sp or rgdal.
Loading required package: parallel
Loading required package: R.utils
Loading required package: R.oo
Loading required package: R.methodsS3
R.methodsS3 v1.8.1 (2020-08-26 16:20:06 UTC) successfully loaded. See ?R.methodsS3 for help.
R.oo v1.24.0 (2020-08-26 16:11:58 UTC) successfully loaded. See ?R.oo for help.

Attaching package: 'R.oo'

The following object is masked from 'package:R.methodsS3':

    throw

The following object is masked from 'package:rgdal':

    getDescription

The following objects are masked from 'package:raster':

    extend, trim

The following objects are masked from 'package:methods':

    getClasses, getMethods

The following objects are masked from 'package:base':

    attach, detach, load, save

R.utils v2.11.0 (2021-09-26 08:30:02 UTC) successfully loaded. See ?R.utils for help.

Attaching package: 'R.utils'

The following objects are masked from 'package:raster':

    extract, resample

The following object is masked from 'package:utils':

    timestamp

The following objects are masked from 'package:base':

    cat, commandArgs, getOption, inherits, isOpen, nullfile, parse,
    warnings

Loading required package: rvest
Loading required package: xml2
Loading required package: tidyverse
-- Attaching packages --------------------------------------- tidyverse 1.3.1 --
v tibble  3.1.5     v dplyr   1.0.7
v tidyr   1.1.4     v stringr 1.4.0
v readr   2.0.2     v forcats 0.5.1
v purrr   0.3.4     
-- Conflicts ------------------------------------------ tidyverse_conflicts() --
x tidyr::extract()        masks R.utils::extract(), raster::extract()
x dplyr::filter()         masks stats::filter()
x readr::guess_encoding() masks rvest::guess_encoding()
x dplyr::lag()            masks stats::lag()
x dplyr::select()         masks raster::select()
Loading required package: landscapemetrics
Loading required package: httr
Loading required package: getPass
Loading required package: gdalUtilities

Attaching package: 'gdalUtilities'

The following objects are masked from 'package:gdalUtils':

    gdal_grid, gdal_rasterize, gdal_translate, gdalbuildvrt, gdaldem,
    gdalinfo, gdalwarp, nearblack, ogr2ogr

The following object is masked from 'package:sf':

    gdal_rasterize

Loading required package: viridis
Loading required package: viridisLite
Loading required package: rasterVis
Loading required package: terra
terra version 1.4.7

Attaching package: 'terra'

The following object is masked from 'package:dplyr':

    src

The following object is masked from 'package:tidyr':

    extract

The following objects are masked from 'package:R.utils':

    draw, extract, resample, wrap

The following objects are masked from 'package:R.oo':

    extend, trim

The following object is masked from 'package:rgdal':

    project

The following objects are masked from 'package:raster':

    RGB, adjacent, animate, area, bbox, boundaries, buffer,
    cellFromRowCol, cellFromRowColCombine, cellFromXY, clamp, click,
    colFromCell, colFromX, cover, crop, crosstab, crs, crs<-,
    disaggregate, distance, erase, extend, extract, flip, focal, freq,
    geom, hasValues, inMemory, init, interpolate, mask, modal, mosaic,
    ncell, ncol<-, nrow<-, origin, origin<-, plotRGB, rasterize,
    readStart, readStop, rectify, res, res<-, resample, rotate,
    rowColFromCell, rowFromCell, rowFromY, setMinMax, setValues, shift,
    stretch, symdif, terrain, trim, values, values<-, writeRaster,
    writeStart, writeStop, writeValues, xFromCell, xFromCol, xmax,
    xmax<-, xmin, xmin<-, xres, xyFromCell, yFromCell, yFromRow, ymax,
    ymax<-, ymin, ymin<-, yres, zonal, zoom

The following objects are masked from 'package:sp':

    bbox, disaggregate

Loading required package: lattice
Loading required package: latticeExtra

Attaching package: 'latticeExtra'

The following object is masked from 'package:ggplot2':

    layer

Warning: replacing previous import 'raster::init' by 'terra::init' when loading 'rasterVis'
Warning: replacing previous import 'raster::writeStop' by 'terra::writeStop' when loading 'rasterVis'
Warning: replacing previous import 'raster::extract' by 'terra::extract' when loading 'rasterVis'
Warning: replacing previous import 'raster::yFromCell' by 'terra::yFromCell' when loading 'rasterVis'
Warning: replacing previous import 'raster::adjacent' by 'terra::adjacent' when loading 'rasterVis'
Warning: replacing previous import 'raster::cellFromRowColCombine' by 'terra::cellFromRowColCombine' when loading 'rasterVis'
Warning: replacing previous import 'raster::RGB' by 'terra::RGB' when loading 'rasterVis'
Warning: replacing previous import 'raster::nrow<-' by 'terra::nrow<-' when loading 'rasterVis'
Warning: replacing previous import 'raster::rotate' by 'terra::rotate' when loading 'rasterVis'
Warning: replacing previous import 'raster::click' by 'terra::click' when loading 'rasterVis'
Warning: replacing previous import 'raster::readStart' by 'terra::readStart' when loading 'rasterVis'
Warning: replacing previous import 'raster::ymax<-' by 'terra::ymax<-' when loading 'rasterVis'
Warning: replacing previous import 'raster::mosaic' by 'terra::mosaic' when loading 'rasterVis'
Warning: replacing previous import 'raster::yres' by 'terra::yres' when loading 'rasterVis'
Warning: replacing previous import 'raster::xres' by 'terra::xres' when loading 'rasterVis'
Warning: replacing previous import 'raster::ymin' by 'terra::ymin' when loading 'rasterVis'
Warning: replacing previous import 'raster::mask' by 'terra::mask' when loading 'rasterVis'
Warning: replacing previous import 'raster::xmin' by 'terra::xmin' when loading 'rasterVis'
Warning: replacing previous import 'raster::animate' by 'terra::animate' when loading 'rasterVis'
Warning: replacing previous import 'raster::cellFromRowCol' by 'terra::cellFromRowCol' when loading 'rasterVis'
Warning: replacing previous import 'raster::hasValues' by 'terra::hasValues' when loading 'rasterVis'
Warning: replacing previous import 'raster::rasterize' by 'terra::rasterize' when loading 'rasterVis'
Warning: replacing previous import 'raster::writeStart' by 'terra::writeStart' when loading 'rasterVis'
Warning: replacing previous import 'raster::setValues' by 'terra::setValues' when loading 'rasterVis'
Warning: replacing previous import 'raster::resample' by 'terra::resample' when loading 'rasterVis'
Warning: replacing previous import 'raster::xyFromCell' by 'terra::xyFromCell' when loading 'rasterVis'
Warning: replacing previous import 'raster::stretch' by 'terra::stretch' when loading 'rasterVis'
Warning: replacing previous import 'raster::cover' by 'terra::cover' when loading 'rasterVis'
Warning: replacing previous import 'raster::writeValues' by 'terra::writeValues' when loading 'rasterVis'
Warning: replacing previous import 'raster::values' by 'terra::values' when loading 'rasterVis'
Warning: replacing previous import 'raster::cellFromXY' by 'terra::cellFromXY' when loading 'rasterVis'
Warning: replacing previous import 'raster::xmin<-' by 'terra::xmin<-' when loading 'rasterVis'
Warning: replacing previous import 'raster::modal' by 'terra::modal' when loading 'rasterVis'
Warning: replacing previous import 'raster::res' by 'terra::res' when loading 'rasterVis'
Warning: replacing previous import 'raster::freq' by 'terra::freq' when loading 'rasterVis'
Warning: replacing previous import 'raster::ncell' by 'terra::ncell' when loading 'rasterVis'
Warning: replacing previous import 'raster::trim' by 'terra::trim' when loading 'rasterVis'
Warning: replacing previous import 'raster::area' by 'terra::area' when loading 'rasterVis'
Warning: replacing previous import 'raster::erase' by 'terra::erase' when loading 'rasterVis'
Warning: replacing previous import 'raster::writeRaster' by 'terra::writeRaster' when loading 'rasterVis'
Warning: replacing previous import 'raster::res<-' by 'terra::res<-' when loading 'rasterVis'
Warning: replacing previous import 'raster::extend' by 'terra::extend' when loading 'rasterVis'
Warning: replacing previous import 'raster::yFromRow' by 'terra::yFromRow' when loading 'rasterVis'
Warning: replacing previous import 'raster::crs' by 'terra::crs' when loading 'rasterVis'
Warning: replacing previous import 'raster::clamp' by 'terra::clamp' when loading 'rasterVis'
Warning: replacing previous import 'raster::colFromCell' by 'terra::colFromCell' when loading 'rasterVis'
Warning: replacing previous import 'raster::zonal' by 'terra::zonal' when loading 'rasterVis'
Warning: replacing previous import 'raster::boundaries' by 'terra::boundaries' when loading 'rasterVis'
Warning: replacing previous import 'raster::symdif' by 'terra::symdif' when loading 'rasterVis'
Warning: replacing previous import 'raster::ncol<-' by 'terra::ncol<-' when loading 'rasterVis'
Warning: replacing previous import 'raster::origin' by 'terra::origin' when loading 'rasterVis'
Warning: replacing previous import 'raster::rowColFromCell' by 'terra::rowColFromCell' when loading 'rasterVis'
Warning: replacing previous import 'raster::terrain' by 'terra::terrain' when loading 'rasterVis'
Warning: replacing previous import 'raster::geom' by 'terra::geom' when loading 'rasterVis'
Warning: replacing previous import 'raster::xFromCell' by 'terra::xFromCell' when loading 'rasterVis'
Warning: replacing previous import 'raster::crs<-' by 'terra::crs<-' when loading 'rasterVis'
Warning: replacing previous import 'raster::rowFromCell' by 'terra::rowFromCell' when loading 'rasterVis'
Warning: replacing previous import 'raster::inMemory' by 'terra::inMemory' when loading 'rasterVis'
Warning: replacing previous import 'raster::xmax<-' by 'terra::xmax<-' when loading 'rasterVis'
Warning: replacing previous import 'raster::crosstab' by 'terra::crosstab' when loading 'rasterVis'
Warning: replacing previous import 'raster::disaggregate' by 'terra::disaggregate' when loading 'rasterVis'
Warning: replacing previous import 'raster::zoom' by 'terra::zoom' when loading 'rasterVis'
Warning: replacing previous import 'raster::values<-' by 'terra::values<-' when loading 'rasterVis'
Warning: replacing previous import 'raster::setMinMax' by 'terra::setMinMax' when loading 'rasterVis'
Warning: replacing previous import 'raster::distance' by 'terra::distance' when loading 'rasterVis'
Warning: replacing previous import 'raster::readStop' by 'terra::readStop' when loading 'rasterVis'
Warning: replacing previous import 'raster::origin<-' by 'terra::origin<-' when loading 'rasterVis'
Warning: replacing previous import 'raster::flip' by 'terra::flip' when loading 'rasterVis'
Warning: replacing previous import 'raster::crop' by 'terra::crop' when loading 'rasterVis'
Warning: replacing previous import 'raster::xFromCol' by 'terra::xFromCol' when loading 'rasterVis'
Warning: replacing previous import 'raster::interpolate' by 'terra::interpolate' when loading 'rasterVis'
Warning: replacing previous import 'raster::bbox' by 'terra::bbox' when loading 'rasterVis'
Warning: replacing previous import 'raster::shift' by 'terra::shift' when loading 'rasterVis'
Warning: replacing previous import 'raster::focal' by 'terra::focal' when loading 'rasterVis'
Warning: replacing previous import 'raster::buffer' by 'terra::buffer' when loading 'rasterVis'
Warning: replacing previous import 'raster::ymin<-' by 'terra::ymin<-' when loading 'rasterVis'
Warning: replacing previous import 'raster::colFromX' by 'terra::colFromX' when loading 'rasterVis'
Warning: replacing previous import 'raster::ymax' by 'terra::ymax' when loading 'rasterVis'
Warning: replacing previous import 'raster::rectify' by 'terra::rectify' when loading 'rasterVis'
Warning: replacing previous import 'raster::xmax' by 'terra::xmax' when loading 'rasterVis'
Warning: replacing previous import 'raster::rowFromY' by 'terra::rowFromY' when loading 'rasterVis'
Warning: replacing previous import 'raster::plotRGB' by 'terra::plotRGB' when loading 'rasterVis'
Loading required package: rlang

Attaching package: 'rlang'

The following objects are masked from 'package:purrr':

    %@%, as_function, flatten, flatten_chr, flatten_dbl, flatten_int,
    flatten_lgl, flatten_raw, invoke, list_along, modify, prepend,
    splice

The following object is masked from 'package:xml2':

    as_list

The following object is masked from 'package:R.utils':

    env

The following objects are masked from 'package:R.oo':

    abort, ll

Loading required package: rasterDT
Loading required package: data.table

Attaching package: 'data.table'

The following object is masked from 'package:rlang':

    :=

The following objects are masked from 'package:terra':

    copy, shift

The following objects are masked from 'package:dplyr':

    between, first, last

The following object is masked from 'package:purrr':

    transpose

The following object is masked from 'package:raster':

    shift

rsp2ebv               package:ecochange                R Documentation

_I_n_t_e_g_r_a_t_e _r_e_m_o_t_e _s_e_n_s_i_n_g _p_r_o_d_u_c_t_s

_D_e_s_c_r_i_p_t_i_o_n:

     This function integrates ecosystem remote sensing products and
     produces raster-data sections with the cell values enclosed in a
     region of interest.

_U_s_a_g_e:

     rsp2ebv(ps = NULL, ..., 
         lyrs = NULL, path, 
         sr, ofr = c(30, 30), 
         mc.cores = round(detectCores() * 
             0.6, 0))
     
_A_r_g_u_m_e_n_t_s:

      ps: 'SpatialPolygonsDataFrame'; or 'character'; or 'NULL'. Region
          of interest. This can be whether 1) a polygon geometry; or 2)
          the name of a 'GADM' unit (see 'getGADM'); or 3) a 'NULL'
          value. Default 'NULL' makes the function to print a list of
          'GADM' units.

     ...: If 'ps' is a 'GADM' unit then additional arguments in
          'getGADM' can be specified here.

    lyrs: 'character'. Names of the ecosystem earth-observation
          products. If 'NULL' then a list of products is printed, see
          'listGP'.  Default 'NULL'.

    path: 'character'. Path name indicating where the variables are
          stored. If missing then a folder named as ''ecochange''
          located in a current temporary directory is used.

      sr: 'character'. 'PROJ.4' description of the target coordinate
          reference system. If missing then the target layers are
          projected to metric system 'UTM'.

     ofr: 'numeric'. 'c(xres,yres)'.  Output file resolution (in target
          georeferenced units). Default 'c(30,30)' m2.

mc.cores: 'numeric'. The number of cores. Default uses around 60
          percent of the cores.

_D_e_t_a_i_l_s:

     This function implements ''gdalUtils'' so it assumes the user has
     a working GDAL installation on their system. From the
     documentation: "If the ''gdalUtils_gdalPath'' option has been set
     (usually by ''gdal_setInstallation''), the GDAL found in that
     'path' will be used. If nothing is found, ''gdal_setInstallation''
     will be executed to attempt to find a working GDAL that has the
     right drivers as specified with the ''of'' (output format)
     parameter", see example below.

_V_a_l_u_e:

     'RasterStack' or 'list'.

_A_u_t_h_o_r(_s):

     Wilson Lara Henao <wilarhen@gmail.com> [aut, cre], Victor
     Gutierrez-Velez [aut], Ivan Gonzalez [aut], Maria C. Londono [aut]

_R_e_f_e_r_e_n_c_e_s:

     Jetz, W., McGeoch, M. A., Guralnick, R., Ferrier, S., Beck, J.,
     Costello, M. J., ... & Meyer, C. (2019). Essential biodiversity
     variables for mapping and monitoring species populations. Nature
     Ecology & Evolution, 3(4), 539-551.

     O'Connor, B., Secades, C., Penner, J., Sonnenschein, R., Skidmore,
     A., Burgess, N. D., & Hutton, J. M. (2015). Earth observation as a
     tool for tracking progress towards the Aichi Biodiversity Targets.
     Remote sensing in ecology and conservation, 1(1), 19-28.

     Skidmore, A. K., & Pettorelli, N. (2015). Agree on biodiversity
     metrics to track from space: Ecologists and space agencies must
     forge a global monitoring strategy. Nature, 523(7561), 403-406.

_E_x_a_m_p_l_e_s:

     ## First, we'll check to make sure there is a valid GDAL
     ## installation (from 'gdalUtils):
     
      
      gdalUtils::gdal_setInstallation()
      valid_install <- !is.null(getOption("gdalUtils_gdalPath"))
      
     
     ## Warnings from GDAL/PROJ are suppressed.
     
     ## A Global Surface Water layer ('seasonality') covering the extent of a
     ## Colombian municipality Cartagena del ChairÃ¡ is formated into an
     ## spatial EBV:
             load(system.file('cchaira_roi.RData',package = 'ecochange'))
     
      
      suppressWarnings(
      rsp_cchaira <- getrsp(cchaira_roi,
        lyrs = 'seasonality', mc.cores = 2, path = tempdir())
     )
     
      file.exists(rsp_cchaira)
     
      suppressWarnings(
      season_cchaira <- rsp2ebv(cchaira_roi,
                                    lyrs = 'seasonality', path = tempdir())
      )
     
      suppressWarnings(
      plotebv(season_cchaira)
      )
     

trying URL 'https://biogeo.ucdavis.edu/data/gadm3.6/Rsp/gadm36_COL_2_sp.rds'
Content type 'text/html; charset=iso-8859-1' length 1159816 bytes (1.1 MB)
==================================================
downloaded 1.1 MB

Quitting from lines 63-66 (ecochange_vignette.Rmd) 
Error: processing vignette 'ecochange_vignette.Rmd' failed with diagnostics:
unable to find an inherited method for function 'xmin' for signature '"Extent"'
--- failed re-building 'ecochange_vignette.Rmd'

SUMMARY: processing the following file failed:
  'ecochange_vignette.Rmd'

Error: Vignette re-building failed.
Execution halted