[英]R Package Doesn't Install in Jupyter Notebook, But Installs in RStudio and R app
我正在嘗試使用Jupyter筆記本中的以下代碼安裝PerformanceAnalytics包,我已經用它成功安裝了許多軟件包,例如ggplot2,代碼如下:
install.packages("PerformanceAnalytics", repos='http://cran.r-project.org')
但我讀到許多其他問題,添加dependencies=TRUE
將解決問題。 不幸的是,它沒有。 我一直收到以下錯誤消息。
install.packages("PerformanceAnalytics", repos='http://cran.r-project.org',
dependencies=TRUE)
Warning message in install.packages("PerformanceAnalytics", repos =
"http://cran.r-project.org"): “installation of package ‘PerformanceAnalytics’
had non-zero exit status”Updating HTML index of packages in '.Library'
Making 'packages.html' ... done
該軟件包安裝在R app和RStudio中沒有問題。 Jupyter是否需要這個特定包裝? 我正在使用macOS 10.12.5。 下面是我運行sessionInfo()
時的信息。
R version 3.3.2 (2016-10-31)
Platform: x86_64-apple-darwin11.4.2 (64-bit)
Running under: macOS Sierra 10.12.5
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] R6_2.2.0 magrittr_1.5 IRdisplay_0.4.4 pbdZMQ_0.2-4
[5] tools_3.3.2 crayon_1.3.2 uuid_0.1-2 stringi_1.1.2
[9] IRkernel_0.7.1 jsonlite_1.1 stringr_1.1.0 digest_0.6.10
[13] repr_0.10 evaluate_0.10
問題的解決方案是否可以在R Jupyter筆記本中安裝bioconductor包'rain'? 我的問題也解決了。 我使用的是Anaconda版本的R.我卸載了Anaconda,而是手動安裝了Jupyter Notebook和IRkernal,解決了我的問題。 有關詳細信息,請參閱上面鏈接的答案。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.