【问题标题】:Package Loading Problems包裹加载问题
【发布时间】:2021-09-29 04:01:28
【问题描述】:

我在加载这个名为 equatiomatic

的包时遇到问题

我已经安装成功,但是当我使用library(equatiomatic)进行库时,出现以下错误信息。

Error: package or namespace load failed for ‘equatiomatic’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]): namespace ‘htmltools’ 0.5.1.1 is already loaded, but >= 0.5.2 is required

谁能告诉我怎么解决?

【问题讨论】:

  • 如果重新启动会话,使用 install.packages("htmltools") 安装 htmltools 然后使用 library(equatiomatic) 加载 equatiomatic,是否会出现同样的错误?
  • 它有效!谢谢你
  • 不客气 - 我会把它作为答案发布

标签: r package


【解决方案1】:

一种解决方案是更新 htmltools 然后加载 equatiomatic,例如

# restart or start a new session to 'unload' all libraries

# install htmltools
install.packages("htmltools")

# load equatiomatic
library(equatiomatic)

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2020-07-23
    • 1970-01-01
    • 1970-01-01
    • 2011-03-11
    • 2021-12-13
    • 1970-01-01
    • 2014-08-20
    • 2014-07-30
    相关资源
    最近更新 更多