Giter Site home page Giter Site logo

Comments (3)

rdinnager avatar rdinnager commented on July 30, 2024

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.

kmechan avatar kmechan commented on July 30, 2024

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.

This has worked perfectly. Thank you so much!

Apologies for the screenshot. I'll be sure to paste the code next time.

from enmtools.

danlwarren avatar danlwarren commented on July 30, 2024

No worries!

from enmtools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.