久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

如何安裝“R-essentials"中不可用的 R 包?

How to install R packages that are not available in quot;R-essentialsquot;?(如何安裝“R-essentials中不可用的 R 包?)
本文介紹了如何安裝“R-essentials"中不可用的 R 包?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我使用開箱即用的 Anaconda 安裝來使用 Python.現在我已經讀到,也可以在此安裝中包含"R 世界,并在 Jupyter/Ipython 筆記本中使用 IR 內核.

I use an out-of-the-box Anaconda installation to work with Python. Now I have read that it is possible to also "include" the R world within this installation and to use the IR kernel within the Jupyter/Ipython notebook.

我找到了安裝許多著名 R 包的命令:conda install -c r r-essentials

I found the command to install a number of famous R packages: conda install -c r r-essentials

我的初學者問題:

如何安裝 R-essential 包中未包含的 R 包?例如 CRAN 上可用的 R 包.pip"僅適用于 PyPI Python 包,不是嗎?

How do I install R packages that are not included in the R-essential package? For example R packages that are available on CRAN. "pip" works only for PyPI Python packages, doesn't it?

推薦答案

現在我找到了文檔:

這是解釋如何生成僅在 CRAN 存儲庫中可用的 R 包的文檔:https://www.continuum.io/content/conda-data-science

This is the documentation that explains how to generate R packages that are only available in the CRAN repository: https://www.continuum.io/content/conda-data-science

轉到構建 conda R 包"部分.

Go to the section "Building a conda R package".

(提示:只要 R 包在 anaconda.org 下可用,請使用此資源.請參閱此處:https://www.continuum.io/blog/developer/jupyter-and-conda-r)

(Hint: As long as the R package is available under anaconda.org use this resource. See here: https://www.continuum.io/blog/developer/jupyter-and-conda-r)

alistaire 的回答是添加 R 包的另一種可能性:

alistaire's answer is another possibility to add R packages:

如果您通過常規 install.packages(來自 CRAN 鏡像)或 devtools::install_github(來自 GitHub)從 R 內部安裝包,它們可以正常工作.@alistaire

If you install packages from inside of R via the regular install.packages (from CRAN mirrors), or devtools::install_github (from GitHub), they work fine. @alistaire

如何做到這一點:打開你的(獨立的)R 安裝,然后運行以下命令:

How to do this: Open your (independent) R installation, then run the following command:

install.packages("png", "/home/user/anaconda3/lib/R/library")

將新包添加到 Jupyter 使用的正確 R 庫中,否則該包將安裝在 中提到的/home/user/R/i686-pc-linux-gnu-library/3.2/png/libs 中.libPaths() .

to add new package to the correct R library used by Jupyter, otherwise the package will be installed in /home/user/R/i686-pc-linux-gnu-library/3.2/png/libs mentioned in .libPaths() .

這篇關于如何安裝“R-essentials"中不可用的 R 包?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

Troubles while parsing with python very large xml file(使用 python 解析非常大的 xml 文件時出現問題)
Find all nodes by attribute in XML using Python 2(使用 Python 2 在 XML 中按屬性查找所有節點)
Python - How to parse xml response and store a elements value in a variable?(Python - 如何解析 xml 響應并將元素值存儲在變量中?)
How to get XML tag value in Python(如何在 Python 中獲取 XML 標記值)
How to correctly parse utf-8 xml with ElementTree?(如何使用 ElementTree 正確解析 utf-8 xml?)
Parse XML from URL into python object(將 XML 從 URL 解析為 python 對象)
主站蜘蛛池模板: 亚洲精品国产第一综合99久久 | 亚洲高清视频一区二区 | 色久伊人| 在线观看成人av | 人人干人人看 | 亚洲成人在线免费 | 成人亚洲 | 国产成人精品在线播放 | 亚洲精品在线看 | 久久久久久久网 | 亚洲国产成人精品在线 | 国产精品一区二区欧美 | 毛片视频网站 | 二区三区av| 国色天香成人网 | 91午夜在线 | 免费一区二区三区在线视频 | 激情91| 成人免费一区二区三区牛牛 | 亚洲视频一区二区三区 | 精品九九| 一区二区三区视频 | 国产免费一区二区三区 | 亚洲91视频| 久久一区二区精品 | 久久久久久免费毛片精品 | 色婷婷综合久久久久中文一区二区 | 中文视频在线 | 免费视频99 | 久草青青草 | 99久久免费精品国产免费高清 | 天堂久| 美女国内精品自产拍在线播放 | 日韩国产精品一区二区三区 | av网站免费在线观看 | 日韩一区二区在线视频 | a国产视频 | 亚洲欧美日韩精品久久亚洲区 | 国产成人精品午夜视频免费 | 精品一区二区三区在线观看 | 97久久精品午夜一区二区 |