我和我的同事正在 RStudio 中使用 Bookdown 编写一本书。由于我使用 ggplot 创建了很多图形,因此对其他软件包(ggplot、ggforce、gganimate 等)有很多依赖项,因此我在本书的过程中添加了 renv 来负责软件包管理。全新安装 Windows 后,我现在再次设置项目时遇到问题,因为有从 R 到版本 3.6.3 的更新并使用了软件包。
renv 项目的初始状态是 R,版本为 3.6.2,我重新安装了它。打开项目后,我运行renv::restore()以恢复所有包的环境。目前只有 nloptr 包(版本 1.2.1)有一个 bug,因为它必须从源代码构建包。
Installing minqa [1.2.4] ...
OK (linked cache)
Installing nloptr [1.2.1] ...
FAILED
Error installing package 'nloptr':
==================================
* installing *source* package 'nloptr' ...
** package 'nloptr' successfully unpacked and MD5 sums checked
** using staged installation
**********************************************
WARNING: this package has a configure script
It probably needs manual configuration
**********************************************
** libs
C:/Rtools/mingw_64/bin/g++ -std=gnu++11 …Run Code Online (Sandbox Code Playgroud)