# The above finds all the files with extension "grd" in the
# examples ("ex") directory of the dismo package. You do not
# need such a complex statement to get your own files.
Did you attach the raster package with library(raster)? It seems the
newest version of dismo does not depend on raster, so you will not be
able to use raster-functions if you only attach dismo.
This error message typically comes when R tries to use
utils:::stack.default instead of the stack-function defined in the
raster-package.
If this is not the case, please give the output from sessionInfo().
Cheers,
Jon
# The above finds all the files with extension "grd" in the
# examples ("ex") directory of the dismo package. You do not
# need such a complex statement to get your own files.
Error in rep.int(names(x), lapply(x, length)) : invalid 'times' value
Do you know how to fix it?
Thank you,
Guilherme
[[alternative HTML version deleted]]
Jon Olav Sk?ien
Joint Research Centre - European Commission
Institute for Environment and Sustainability (IES)
Climate Risk Management Unit
Via Fermi 2749, TP 100-01, I-21027 Ispra (VA), ITALY
jon.skoien at jrc.ec.europa.eu
Tel: +39 0332 789205
Disclaimer: Views expressed in this email are those of the individual
and do not necessarily represent official views of the European Commission.