gpt4 book ai didi

r - 在 Jupyter 中安装 R 包

转载 作者:行者123 更新时间:2023-12-04 19:13:22 29 4
gpt4 key购买 nike

我周末一直在尝试安装mosaic , car以及运行 Ubuntu 16.04 的 Jupyter Notebook 中 R 内核 (3.4.2) 上的一些其他软件包。我试过install.packages('car', '/home/jayaramdas/anaconda3/lib/R/library/', repos='http://cran.us.r-project.org') :它返回:
还安装依赖项“pbkrtest”
Warning message in install.packages("car", "/home/jayaramdas/anaconda3/lib/R/library/", :
“installation of package ‘pbkrtest’ had non-zero exit status”Warning message in install.packages("car", "/home/jayaramdas/anaconda3/lib/R/library/", :
“installation of package ‘car’ had non-zero exit status”

我已经尝试将它安装在原始 R 包中,我得到了这个:Warning messages:
1: In install.packages("car", "/home/jayaramdas/anaconda3/lib/R/library/", :
installation of package ‘pbkrtest’ had non-zero exit status
2: In install.packages("car", "/home/jayaramdas/anaconda3/lib/R/library/", :
installation of package ‘car’ had non-zero exit status

我尝试使用 Rstudio 安装它,但它不会让我写文件。我还尝试下载 Ubuntu 的 zip 文件,但它仍然给出了“非零退出 error. Is this a usual problem that people have with”。 car` 和其他 R 包?我只是想弄清楚如何将一些包添加到我的 jupyter 笔记本中。

最佳答案

你在 Ubuntu 上。您想使用包管理器 ( conda )。

我可以建议你使用原生的吗?

sudo apt-get install r-cran-car

将安装 car及其所有依赖项。如果没有,请提交 Ubuntu 错误报告。

同样,您可以从 Ubuntu 获得更多软件包: apt-cache search 'r-cran-*' .一旦你考虑了 Rutter PPA,你就有了 CRAN 的大部分预构建。

关于r - 在 Jupyter 中安装 R 包,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47250420/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com