是否可以将包 semPlot 与 R 3.6.2 一起使用?

Is it possible to use package semPlot with R 3.6.2?

我将 R 升级到 3.6.2 版,发现包 semPlot 无法运行。它安装没有任何问题,但是当我尝试加载它时,我收到消息,

Error: package or namespace load failed for ‘semPlot’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]): there is no package called ‘ggm’

然后我尝试安装 ggm 但收到以下警告和错误:

Warning in install.packages : dependency ‘graph’ is not available

There is a binary version available but the source version is later: binary source needs_compilation ggm 2.3 2.5 FALSE installing the source package ‘ggm’ trying URL 'https://cran.rstudio.com/src/contrib/ggm_2.5.tar.gz' Content type 'application/x-gzip' length 109414 bytes (106 KB) downloaded 106 KB

ERROR: dependency ‘graph’ is not available for package ‘ggm’ removing ‘/Library/Frameworks/R.framework/Versions/3.6/Resources/library/ggm’ Warning in install.packages : installation of package ‘ggm’ had non-zero exit status"

然后我尝试安装图形,但它说:

package ‘graph’ is not available (for R version 3.6.2).

我想知道是否有其他人遇到过这个问题,并且有任何解决方案以便我可以使用 R 3.6.2 加载 semPlot?

非常感谢。

我也有 R 3.6.2 并且得到了你遇到的所有错误。但是当我尝试从 GitHub 安装 semPlot 包时,它工作正常,如下所示:

install.packages('devtools')
library(devtools)

install_github('SachaEpskamp/semPlot',  dependencies = T)
library(semPlot)

请注意,我尝试了 cran/semPlot 存储库但对我不起作用,而 SachaEpskamp/semPlot 对我有用。

希望你能成功。