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

即使安装了devtools,R中也没有名为devtools的包,r,jupyter-notebook,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)

我正试图按照这个指南,让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,在我的情况下,没有一个解决方案不起作用:

您是否检查了
install.packages()
命令的输出?可能有什么地方出错了。再次检查运行just
install.packages('devtools')
。我刚刚再次运行了它,我认为您是对的,这就是问题所在。我正在更新我的帖子,并显示错误消息。你在哪个系统上?可能重复的也可能重复的