Conda build R package fails at C compiler issue on MacOS Mojave

前端 未结 2 1490

I\'m trying to install an R package called treatSens with conda to use it in Jupyter notebook. The commands I executed:

conda install conda-build conda skeleto

2条回答
  •  囚心锁ツ
    2020-12-18 14:32

    As a quick and dirty workaround (from this comment), I was able to install packages in R using below code in RStudio (opened in conda env)

    Sys.setenv(CONDA_BUILD_SYSROOT="/")
    

    Now, you can install any R package via RStudio Console e.g.

    install.packages("tidyverse")
    

    Hope this helps.

提交回复
热议问题