我正在读 R Springer 的书作者。他们的 00 安装脚本会产生以下警告
# List of R packages
pkgs <- c("mada", "meta", "metafor", "metasens", "mvmeta", "netmeta",
"rmeta", "ellipse")
# Use your favorite CRAN mirror (argument 'repos')
# See website http://cran.r-project.org/mirrors.html for a list of
# CRAN mirrors
install.packages(pkgs,
repos="http://cran.at.r-project.org/")
以 root 身份发出警告并重复 4 次
Warning messages:
1: In install.packages(pkgs, repos = "http://cran.at.r-project.org/") :
installation of package ‘rgl’ had non-zero exit status
2: In install.packages(pkgs, repos = "http://cran.at.r-project.org/") :
installation of package ‘netmeta’ had non-zero exit status
R:3.3.1
操作系统:Debian 8.5
答案1
该netmeta
包导入该rgl
包。要安装rgl从源代码中打包需要一些库:
系统要求:OpenGL、GLU 库、XQuartz(在 OSX 上)、zlib(可选)、libpng(>=1.2.9,可选)、FreeType(可选)
在基于 Debian 的发行版上,安装预构建的二进制包会更容易:
apt-get install r-cran-rgl
之后install.packages("netmeta")
应该在 R 中工作。