即使安装了devtools,R中也没有名为devtools的软件包

时间:2018-11-13 13:43:40

标签: r jupyter-notebook

我正在尝试按照本指南将R作为jupyter笔记本中的可用语言。

第一步是运行:

install.packages(c('repr', 'IRdisplay', 'evaluate', 'crayon', 'pbdZMQ', 'devtools', 'uuid', 'digest'))

但是即使运行了此命令,我仍然无法执行下一步:

devtools::install_github('IRkernel/IRkernel')

返回错误:

Error in loadNamespace(name) : there is no package called ‘devtools’

如果您查看我发布的链接的评论部分,其他人似乎也遇到了这个问题。

更新: Scott Richie建议我重新运行install.packages('devtools') 这返回:

The downloaded source packages are in
        ‘/tmp/RtmpgBI8IU/downloaded_packages’
Warning messages:
1: In install.packages("devtools") :
  installation of package ‘curl’ had non-zero exit status
2: In install.packages("devtools") :
  installation of package ‘openssl’ had non-zero exit status
3: In install.packages("devtools") :
  installation of package ‘git2r’ had non-zero exit status
4: In install.packages("devtools") :
  installation of package ‘httr’ had non-zero exit status
5: In install.packages("devtools") :
  installation of package ‘gh’ had non-zero exit status
6: In install.packages("devtools") :
  installation of package ‘usethis’ had non-zero exit status
7: In install.packages("devtools") :
  installation of package ‘devtools’ had non-zero exit status

更新2:

我阅读了相关的线程,并能够获得devtools。但我遇到了问题:

> IRkernel::installspec()
Error in IRkernel::installspec() : 
  jupyter-client has to be installed but “jupyter kernelspec --version” exited with code 1.

该另一个线程已退出,代码为127,在我的情况下,所有解决方案均无效。 :jupyter-client has to be installed but “jupyter kernelspec --version” exited with code 127

0 个答案:

没有答案
相关问题