r - R lme4ord 安装错误:“错误:对象 'sigma' 未由 'namespace:lme4' 导出”
问题描述
我正在尝试从 github 安装 lme4ord 并收到以下错误:
remotes::install_github("stevencarlislewalker/lme4ord")
Downloading GitHub repo stevencarlislewalker/lme4ord@master
checking for file ‘/tmp/RtmpngUWJn/remotes2a0c5ce3f7b/stevencarlislewalker-lme4ord-5f62664/DESCRIP✔ checking for file ‘/tmp/RtmpngUWJn/remotes2a0c5ce3f7b/stevencarlislewalker-lme4ord-5f62664/DESCRIPTION’ (625ms)
─ preparing ‘lme4ord’:
✔ checking DESCRIPTION meta-information
─ checking for LF line-endings in source and make files and shell scripts
─ checking for empty or unneeded directories
─ building ‘lme4ord_0.0-3.tar.gz’
Installing package into ‘/home/localuserdir/R/x86_64-redhat-linux-gnu-library/3.6’
(as ‘lib’ is unspecified)
* installing *source* package ‘lme4ord’ ...
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
Error: object ‘sigma’ is not exported by 'namespace:lme4'
Execution halted
ERROR: lazy loading failed for package ‘lme4ord’
* removing ‘/home/localuserdir/R/x86_64-redhat-linux-gnu-library/3.6/lme4ord’
Error: Failed to install 'lme4ord' from GitHub:
(converted from warning) installation of package ‘/tmp/RtmpngUWJn/file2a0c7b718e3a/lme4ord_0.0-3.tar.gz’ had non-zero exit status
我的 sessionInfo 是:
R version 3.6.0 (2019-04-26)
Platform: x86_64-redhat-linux-gnu (64-bit)
Running under: Fedora 30 (Workstation Edition)
Matrix products: default
BLAS/LAPACK: /usr/lib64/R/lib/libRblas.so
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=en_US.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] remotes_2.1.0 lme4_1.1-21 Matrix_1.2-17
loaded via a namespace (and not attached):
[1] Rcpp_1.0.2 magrittr_1.5 splines_3.6.0 MASS_7.3-51.4
[5] lattice_0.20-38 R6_2.4.0 minqa_1.2.4 tcltk_3.6.0
[9] tools_3.6.0 pkgbuild_1.0.3 grid_3.6.0 nlme_3.1-139
[13] cli_1.1.0 withr_2.1.2 assertthat_0.2.1 rprojroot_1.3-2
[17] crayon_1.3.4 processx_3.4.1 nloptr_1.2.1 callr_3.3.1
[21] ps_1.3.0 curl_4.0 compiler_3.6.0 backports_1.1.4
[25] prettyunits_1.0.2 boot_1.3-22
我在 R 的早期版本(3.2 或更低版本)中看到了一些关于命名空间交互(sigma 是从 base 还是 lme4 加载)的讨论,但这里的所有内容都应该是最新的。有任何想法吗?
解决方案
推荐阅读
- java - 线程“main”中的异常 java.lang.NoClassDefFoundError: si.gov.fu.InvoiceRequest - 如何解决?
- android - 在 android 中使用 Mapbox 获取当前的 x,y 坐标
- ruby-on-rails - Rails 5.2 / Ruby 2.5:如何消除垃圾邮件 WEBrick 请求日志?
- laravel - 安排电子邮件在用户提交表单后 40 分钟使用 mailgun 发送
- r - 麻烦创建地图(ggplot)和按属性着色
- nestjs - 我如何在 CustomRepository(nestjs) 中使用 DI
- json - 快速向 JSON 的主体添加值
- node.js - 找不到模块
- javascript - 不能使用 stopProgagation 和 preventDefault 来停止打开链接
- vba - 为什么从最新的电子邮件跳过文件循环进入电子邮件收件箱?