Pakillo / rSDM

Species Distribution Modelling in R
https://pakillo.github.io/rSDM/
7 stars 1 forks source link

ERROR: dependency 'mapmisc' is not available for package 'rSDM' #5

Open kirstyfranklin opened 1 year ago

kirstyfranklin commented 1 year ago

Hi! I tried to use your package today and unfortunately I couldn't install it from your GitHub as the package 'mapmisc' (and others?) have been removed from the CRAN repository.

I have been able to use most the functions in your rSDM package using the source code, but the mapping option in 'points2nearestcell' doesn't work because of the above issue.

I'm not sure if you have plans to update your package, or if you know about this issue already, but I thought I would highlight it just in case. Everything apart from the mapping has worked for me exactly how I wanted it to - so thanks very much :-)

Pakillo commented 1 year ago

Hi Kirsty

Thanks for reporting. This package was kind of abandoned, but it seems some people still find it useful (particularly the points2nearestcell function). I already started a rewrite following the changes in R spatial package ecosystem, but didn't finish all the required changes. I'll try to revise everything so the package can be installed smoothly and at least points2nearestcell keeps working. It may take a few days though, I'm a bit overloaded at the moment...

AMBarbosa commented 5 months ago

Hi @Pakillo! Students in my courses often ask me about something like points2nearestcell() and I direct them to this package, but then they often get stuck because of these obsolescences. I figured I might as well convert the function to 'terra' myself and save me this constant hassle ;)

I don't have the time, however, to convert other files that would need to be changed in your package to make it installable. So, I'd propose one of three options:

What would your prefer? Cheers!

Pakillo commented 5 months ago

Hi @AMBarbosa ! Agh, thanks for re-upping this. People keep asking me about that function, seems it's useful! I made all the required changes a few months ago and even improved a few things, but didn't push the changes, pending some final checks. I'll upload them asap along this week. I will even try to send this to CRAN, should make it all easier for users. Nonetheless, you are of course free to adapt whatever you find useful here

Pakillo commented 5 months ago

Hi @AMBarbosa @kirstyfranklin

I've just pushed a fully rewritten version of rSDM compatible with current 'rspatial' ecosystem. Still have to add a few tests, but AFAIK it should install and work fine now. Please let me know otherwise. Thanks!

P.S. Please note that some argument names have changed as functions have been fully rewritten