SydneyBioX / spicyR

https://sydneybiox.github.io/spicyR/
8 stars 4 forks source link

Note on MacOS Big Sur + conda environment installation #15

Closed minhtran1309 closed 1 year ago

minhtran1309 commented 2 years ago

The package installation is fine but it's required some dependencies not yet supported for Big Sur

Come here to try on the package but got a few bumps on installing it to a MacOS Big Sur with the issue of the dependent package called concaveman.

ERROR: dependencies ‘V8’, ‘sf’ are not available for package ‘concaveman’

and a dozen of R dependencies of concaveman and R sf (R-spatial) that didn't support Big Sur and Conda environment, such as: gdal, sf, etc.

Finally, I managed to resolve the issue after 2h of trying and searching Recommend: As usual, with R packages, I used: install.packages("units") and 'gdal', 'sf' then 'concaveman' but it resulted in even more pains. I use the following sequence and successfully install the package

conda install -c conda-forge gdal
conda install -c conda-forge udunits2
conda install -c conda-forge r-sf
conda install -c conda-forge r-concaveman

Then enter R environment:

devtools::install_github("ellispatrick/spicyR")

The preprint reads well, I will try the package on my project