[英]conda build R packages to different library location
我正在按照https://www.continuum.io/content/conda-data-science的說明構建一個 CRAN 可用的 R 包(例如 synthpop)。
conda skeleton cran synthpop
conda build r-synthpop
如何更改默認 conda 構建序列以安裝到不同的庫位置,因為我無權安裝到默認位置?
* installing to library ‘/path/to/default/lib’
Error: ERROR: no permission to install to directory ‘/path/to/default/lib’
另外,我正在從虛擬環境中運行 conda build。
在這里提出這個問題: https : //github.com/ContinuumIO/anaconda-issues/issues/1562
嗨,我最近遇到了類似的問題。 經過一番研究,我寫了一篇關於它的文章
https://github.com/alfredzj/Documentations/blob/master/anaconda-set-up.md
我不認為改變位置是一個好主意。
--croot 選項允許安裝到特定位置:
conda build --croot /path/to/somewhere/env r-synthpop/
在我們的例子中,我們有兩個 R 安裝,並且 .Rprofile 中的配置列出了一個限制寫入權限的庫位置。 這個位置掩蓋了我們通過 --croot 給出的路徑。 一旦我們編輯了 .Rprofile,我們就可以使用所需的路徑運行 conda build。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.