r - 安装软件包时出错。错误 dyn.load(文件,DLLpath = DLLpath,...):
问题描述
我在 Linux Mint 20.1 上有 R 版本 3.6.3 和 RStudio 版本 1.4.1106。
对于我要安装的每个软件包,我几乎总是遇到相同的错误。
有人有什么主意吗?
R version 3.6.3 (2020-02-29) -- "Holding the Windsock"
Copyright (C) 2020 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
install.packages("readr")
Installiere Paket nach ‘/home/thomas/R/x86_64-pc-linux-gnu-library/3.6’
(da ‘lib’ nicht spezifiziert)
installiere auch Abhängigkeit ‘hms’
versuche URL 'https://cloud.r-project.org/src/contrib/hms_1.0.0.tar.gz'
Content type 'application/x-gzip' length 42765 bytes (41 KB)
==================================================
downloaded 41 KB
versuche URL 'https://cloud.r-project.org/src/contrib/readr_1.4.0.tar.gz'
Content type 'application/x-gzip' length 488946 bytes (477 KB)
==================================================
downloaded 477 KB
* installing *source* package ‘hms’ ...
** Paket ‘hms’ erfolgreich entpackt und MD5 Summen überprüft
** using staged installation
** R
** byte-compile and prepare package for lazy loading
Fehler in dyn.load(file, DLLpath = DLLpath, ...) :
kann shared object '/usr/lib/R/site-library/rlang/libs/rlang.so' nicht laden:
/usr/lib/R/site-library/rlang/libs/rlang.so: undefined symbol: R_removeVarFromFrame
Ruft auf: <Anonymous> ... namespaceImport -> loadNamespace -> library.dynam -> dyn.load
Ausführung angehalten
ERROR: lazy loading failed for package ‘hms’
* removing ‘/home/thomas/R/x86_64-pc-linux-gnu-library/3.6/hms’
ERROR: dependency ‘hms’ is not available for package ‘readr’
* removing ‘/home/thomas/R/x86_64-pc-linux-gnu-library/3.6/readr’
Die heruntergeladenen Quellpakete sind in
‘/tmp/Rtmpg1107M/downloaded_packages’
Warnmeldungen:
1: In install.packages("readr") :
Installation des Pakets ‘hms’ hatte Exit-Status ungleich 0
2: In install.packages("readr") :
Installation des Pakets ‘readr’ hatte Exit-Status ungleich 0
解决方案
推荐阅读
- java - Java:字符串格式以逗号打印双打
- c# - 在网络上的另一台计算机上更新或插入时刷新所有打开的表单上的 DataGridView
- python - 尝试按 psycopg2 中的聚合函数排序时出错
- android - 在 Woocommerce Rest API 调用中按多个属性及其属性术语过滤产品列表
- flutter - ScrollController:跳转到短列表中的条目
- javascript - 访问数组内的对象数组
- asp.net-core - 自定义验证属性确实显示不正确的错误消息 aspnet core 3
- android - SQLite 游标在升级时返回旧列
- django - 如果 django 表中不存在数据,如何引发错误消息
- javascript - 在 Javascript 中启用/禁用 Gridview (ASP.NET/ASCX) 中的文本框