r - 通过 Github 下载 R 包
问题描述
我一直在尝试rethinking
为 R 安装软件包。我已经下载了先决条件,包括rstan
,但仍然收到相同的错误消息。我的代码如下:
library(devtools)
install_github("rmcelreath/rethinking")
我不断得到这个输出:
Downloading GitHub repo rmcelreath/rethinking@master
Skipping 1 packages ahead of CRAN: StanHeaders
√ checking for file 'C:\Users\noahj\AppData\Local\Temp\RtmpK0JHwE\remotes2a60431d781f\rmcelreath-rethinking-f393f30/DESCRIPTION' ...
- preparing 'rethinking': (1.6s)
√ checking DESCRIPTION meta-information ...
- checking for LF line-endings in source and make files and shell scripts (725ms)
- checking for empty or unneeded directories
- looking to see if a 'data/datalist' file should be added
- building 'rethinking_2.00.tar.gz' (699ms)
Installing package into ‘C:/Users/noahj/Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)
* installing *source* package 'rethinking' ...
** using staged installation
** R
** data
** inst
** byte-compile and prepare package for lazy loading
Error: (converted from warning) package 'rstan' was built under R version 3.6.3
Execution halted
ERROR: lazy loading failed for package 'rethinking'
* removing 'C:/Users/noahj/Documents/R/win-library/3.6/rethinking'
Error: Failed to install 'rethinking' from GitHub:
(converted from warning) installation of package ‘C:/Users/noahj/AppData/Local/Temp/RtmpK0JHwE/file2a605bda3304/rethinking_2.00.tar.gz’ had non-zero exit status
感谢任何有任何见解和帮助的人!
解决方案
推荐阅读
- python - Python:如何确保程序仅从 sys.stdin 获取文件数据?
- scheme - 方案素数分配
- r - 有没有办法将 gganimate 对象保存为带有动画控制按钮的 HTML 页面?
- flutter - 用颤振中的结果数据替换整个身体小部件
- python - 从内部代码中捕获抛出的库错误的最 Pythonic 方法是什么
- laravel - Laravel - 发送有关特定事件的电子邮件
- elasticsearch - 重新安装后 Elasticsearch 未启动
- java - 使用 Lombok 为 Jackson 自动生成构造函数属性,以便在存在多个构造函数时进行反序列化
- python - Django 连接到 MySql 数据库表
- python - 使用 python 脚本生成 xml 文件时出现缩进错误