r-lidar / lidR

Airborne LiDAR data manipulation and visualisation for forestry application
https://CRAN.R-project.org/package=lidR
GNU General Public License v3.0
601 stars 131 forks source link

How to install on MacOS and conda? #539

Closed kevinpauli closed 2 years ago

kevinpauli commented 2 years ago

Hello, I am unable to get this installed on MacOS Monterey 12.2.1 with conda 4.11.0.

This is my environment.yml:

name: r-lidr-test
channels:
  - conda-forge
  - nodefaults
dependencies:
  - r-base
  - r-lidr

conda env create results in:

UnsatisfiableError: The following specifications were found to be incompatible with each other:

Output in format: Requested package -> Available versions

Package r-base conflicts for:
r-lidr -> r-base[version='3.4.1.*|>=3.4.1,<3.4.2.0a0']
r-lidr -> r-data.table -> r-base[version='3.3.2.*|>=3.5,<3.6.0a0|>=3.6,<3.7.0a0|>=4.0,<4.1.0a0|>=4.1,<4.2.0a0|>=3.5.1,<3.5.2.0a0']
r-base

If I try with mamba (version 0.15.3) mamba env create results in this:

Looking for: ['r-base', 'r-lidr']

Encountered problems while solving:
  - nothing provides compiler-rt 4.0.1 hcfea43d_1 needed by clang-4.0.1-1

Any help is much appreciated!

Jean-Romain commented 2 years ago

I don't know what is conda, I don't know what is mamba and I don't have MacOS. Did you considered installing R and R packages the regular way?

As far as I can understand you have troubles with conda not with lidR. You should ask how to work with conda to conda people. I'm sure you will find knowledgeable people on stackoverflow. On my side I can't help you sorry.

kevinpauli commented 2 years ago

My apologies, the page for the conda package https://anaconda.org/conda-forge/r-lidr links to this repo, so I assumed this was the place to seek such help. Cheers!

Jean-Romain commented 2 years ago

I didn't know the existence of this repo. I'm maintaining R packages on CRAN. Other places are mirror or package automatically generated by third parties. I not related in any way to this conda stuff. However I can see that Linux and Window have lidR v4.0.0 released few days ago while MacOS seems to have version 1.5.0 that is 4 years old!

Versions 1.x.y were very primitive draft versions of the package. lidR started to be what it is at version 2.0.0 and I improved it a lot since version 4.0.0 release few days ago. Please do not even consider working with version 1.5.0