0

I'm trying to use conda and Jupypter to write some R code. I found a useful package called 'treatSens' and tried to install via conda following the instructions here.

conda install conda-build
conda skeleton cran treatSens
conda build r-treatsens
conda install -c local r-treatsens

Then I got this error conda_build.exceptions.DependencyNeedsBuildingError: Unsatisfiable dependencies for platform osx-64: {"r-dbarts[version='>=0.9_1']"}. How do I satisfy this dependency? Any suggestion is appreciated.

===UPDATE====

Added --recursive then I got a new error, posted a new question here.

merv
  • 67,214
  • 13
  • 180
  • 245
Logan Yang
  • 2,364
  • 6
  • 27
  • 43
  • Is this error showing after executing the last command? Are there any errors/warnings before? – godot Dec 04 '18 at 22:08
  • @godot Yeah that was after the last command. Updated the question, now it's something about C compiler. – Logan Yang Dec 04 '18 at 22:18

1 Answers1

2

Try the following:

conda install conda-build
conda skeleton cran --recursive treatSens
conda build r-treatsens
conda install -c local r-treatsens

The recursive option should account for the dependencies you need.

Kyle Ingraham
  • 116
  • 1
  • 6
  • Thanks for the answer. Added recursive and got this error about C compiler in the process of installing the dependency `dbarts`. I found this https://github.com/ContinuumIO/anaconda-issues/issues/9872 but not sure what to do yet – Logan Yang Dec 04 '18 at 22:16
  • 2
    Are you using MacOS Mojave? There are some notes here about it getting in the way of 32bit builds: https://github.com/ValveSoftware/Proton/issues/108 – Kyle Ingraham Dec 04 '18 at 23:51
  • Yes Mojave, I think that's the right direction. Now I need to figure out how to customize conda build to use the right C compiler. I found https://conda.io/docs/user-guide/tasks/build-packages/compiler-tools.html but can't figure out how to set it – Logan Yang Dec 05 '18 at 16:30