Closed LennertSchepers closed 2 years ago
I suspect you just need to reinstall the package.
We launched recently a new version of the package, being the diffuse attenuation one of the updated layers. The URL http://www.lifewatch.be/sdmpredictors/BO_damean_lonlat.tif
does not exist anymore. It redirects to https://bio-oracle.org/data/1.0/BO_damean.zip
. The new version of the package handles zipped files. There is more information here: https://github.com/lifewatch/sdmpredictors/releases/tag/v0.2.10
@MireiaValle Can you check the version of the package you are using and reinstall if this is older than 0.2.10?
packageVersion("sdmpredictors")
Let me know if this solves the issue.
As a side note to inform other people in the future; if handling the zipped files is new, can we update the release notes to include that? and I read "Currently uses layers from bio-oracle.org and lifewatch.be", but the news mentions that it uses the files from bio-oracle.org?
I was using version 0.2.9, I updated it to 0.2.10 and now everything works! Thank you very much for your help @salvafern, @LennertSchepers and @bart-v. Best wishes!
We received user feedback through mail from @MireiaValle:
-> Feedback from @bart-v: If you just unzip the file (so you have a TIF file), before doing rasterObjectFromFile() this should work.