Comments (3)
Hi @kmechan, thanks for the bug report. ENMTools
latest version has switched from the raster
package to the terra
package for dealing with spatial data. Normally we check for this and give an informative error message but it looks like those two functions were forgotten. We will work on a fix, but in the mean-time you just need to load your raster files in using terra
instead. This should work (let us know if it doesn't):
library(terra)
library(ENMTools)
cheetah <- terra::rast("Acinonyx_jubatus_avg.asc")
raster.breadth(cheetah)
And do the same for the loading the lion data. Just for future reference, please paste your code and any error messages as text into the issue, rather than using just a screenshot. This just makes it easier for us to test your code because we can copy and paste it instead of transcribing from an image.
@danlwarren It looks like we forgot to add any checks or coercion attempts to raster.breadth()
and raster.overlap()
. I can add this if you are too busy, but probably not until next week.
from enmtools.
Hi @kmechan, thanks for the bug report.
ENMTools
latest version has switched from theraster
package to theterra
package for dealing with spatial data. Normally we check for this and give an informative error message but it looks like those two functions were forgotten. We will work on a fix, but in the mean-time you just need to load your raster files in usingterra
instead. This should work (let us know if it doesn't):library(terra) library(ENMTools) cheetah <- terra::rast("Acinonyx_jubatus_avg.asc") raster.breadth(cheetah)And do the same for the loading the lion data. Just for future reference, please paste your code and any error messages as text into the issue, rather than using just a screenshot. This just makes it easier for us to test your code because we can copy and paste it instead of transcribing from an image.
@danlwarren It looks like we forgot to add any checks or coercion attempts to
raster.breadth()
andraster.overlap()
. I can add this if you are too busy, but probably not until next week.
This has worked perfectly. Thank you so much!
Apologies for the screenshot. I'll be sure to paste the code next time.
from enmtools.
No worries!
from enmtools.
Related Issues (20)
- Consider using modEVA package for model fit
- How to plot my overlap HOT 2
- CSV file problem? HOT 1
- SpatRaster error in enmtools.maxent() HOT 12
- Species 1 does not have a species.name set!
- When I build species objects, I keep getting a Warning message: [buffer] empty SpatVector
- Different Empirical overlap values for identity and background tests HOT 7
- Issue with clamp.env while running identity.test() HOT 2
- Ecospat background tests broken HOT 1
- An unusual value for Shoener's D calculated using raster.overlap HOT 2
- check.species is no longer reordering lat/lon columns correctly HOT 1
- species.from.file returning "Error in if (!is.na(presence.points)) { : the condition has length > 1" HOT 1
- interactive.plot.enmtools.species isn't working correctly HOT 2
- combine.species doesn't work with one species HOT 1
- In enmtools.maxent: .local(object, ...):missing layers (or wrong names) HOT 3
- Add new metrics from Somodi et al.?
- Idea for improving significance testing via RTS-style tests for ENMTools 2 HOT 1
- Fatal Issue encountered when running enmtool.aoc for any ENMs HOT 3
- Error in Warren's I Calculation HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from enmtools.