Running examples in ‘ecochange-Ex.R’ failed
The error most likely occurred in:

> ### Name: gaugeIndicator
> ### Title: Gauge Indicator
> ### Aliases: gaugeIndicator
> 
> ### ** Examples
> 
> ## Warnings from GDAL/PROJ are suppressed.
> 
> ## RasterBrick of structural Essential Biodiversity Variables
> ## covering the extent of a location in the northern Amazon basin
> ## (Colombia) is imported:
> path. <- system.file('amazon.grd',package = 'ecochange')
> amazon <- suppressWarnings(brick(path.))
> 
> ## Changes in layers of tree-canopy cover (TC) in the 'amazon'
> ## brick are computed:
> suppressWarnings(
+     def <- echanges(amazon, eco = 'TC',
+                     change = 'lossyear',
+                     eco_range = c(1,80),
+                     get_unaffected = TRUE,
+                     binary_output = FALSE,
+                     mc.cores = 2)
+ )
[1] "'eco' has length > 1: matching names of 'eco' with values in 'change_vals'"
sh: gdal_calc.py:  not found
Error in .local(.Object, ...) : 

sh: gdal_calc.py:  not found
Error in .local(.Object, ...) : 

Error in (function (classes, fdef, mtable)  : 
  unable to find an inherited method for function ‘raster’ for signature ‘"try-error"’
Execution halted
'LazyData' is specified without a 'data' directory
Running examples in ‘ecochange-Ex.R’ failed
The error most likely occurred in:

> ### Name: gaugeIndicator
> ### Title: Gauge Indicator
> ### Aliases: gaugeIndicator
> 
> ### ** Examples
> 
> ## Warnings from GDAL/PROJ are suppressed.
> 
> ## RasterBrick of structural Essential Biodiversity Variables
> ## covering the extent of a location in the northern Amazon basin
> ## (Colombia) is imported:
> path. <- system.file('amazon.grd',package = 'ecochange')
> amazon <- suppressWarnings(brick(path.))
> 
> ## Changes in layers of tree-canopy cover (TC) in the 'amazon'
> ## brick are computed:
> suppressWarnings(
+     def <- echanges(amazon, eco = 'TC',
+                     change = 'lossyear',
+                     eco_range = c(1,80),
+                     get_unaffected = TRUE,
+                     binary_output = FALSE,
+                     mc.cores = 2)
+ )
[1] "'eco' has length > 1: matching names of 'eco' with values in 'change_vals'"
sh: gdal_calc.py: command not found
sh: gdal_calc.py: command not found
Error in .local(.Object, ...) : 

Error in .local(.Object, ...) : 

Error in (function (classes, fdef, mtable)  : 
  unable to find an inherited method for function ‘raster’ for signature ‘"try-error"’
Execution halted
Running examples in ‘ecochange-Ex.R’ failed
The error most likely occurred in:

> ### Name: gaugeIndicator
> ### Title: Gauge Indicator
> ### Aliases: gaugeIndicator
> 
> ### ** Examples
> 
> ## Warnings from GDAL/PROJ are suppressed.
> 
> ## RasterBrick of structural Essential Biodiversity Variables
> ## covering the extent of a location in the northern Amazon basin
> ## (Colombia) is imported:
> path. <- system.file('amazon.grd',package = 'ecochange')
> amazon <- suppressWarnings(brick(path.))
> 
> ## Changes in layers of tree-canopy cover (TC) in the 'amazon'
> ## brick are computed:
> suppressWarnings(
+     def <- echanges(amazon, eco = 'TC',
+                     change = 'lossyear',
+                     eco_range = c(1,80),
+                     get_unaffected = TRUE,
+                     binary_output = FALSE,
+                     mc.cores = 2)
+ )
[1] "'eco' has length > 1: matching names of 'eco' with values in 'change_vals'"
sh: gdal_calc.py: command not found
sh: gdal_calc.py: command not found
Error in .local(.Object, ...) : 

Error in .local(.Object, ...) : 

Error in (function (classes, fdef, mtable)  : 
  unable to find an inherited method for function ‘raster’ for signature ‘"try-error"’
Execution halted