1

我一直在尝试使用 LAVAAN,这意味着我需要先设置“semPlot”。但是,当我尝试install.packages("semPlot")收到此消息时:

Warning in install.packages :
dependency ‘XML’ is not available
also installing the dependencies ‘RcppParallel’, ‘StanHeaders’, ‘rpf’, ‘sem’, ‘OpenMx’
There are binary versions available but the source versions are later:
                binary   source needs_compilation
RcppParallel    5.0.0    5.0.2              TRUE
StanHeaders  2.21.0-1 2.21.0-5              TRUE
rpf             1.0.3    1.0.4              TRUE
sem             3.1-9   3.1-11              TRUE
OpenMx         2.17.3   2.17.4              TRUE

我试过install.packages("XML")但收到package ‘XML’ is not available (for R version 3.5.2)我的版本是 1.1.463,所以我不确定发生了什么。

当我尝试召唤时,library(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 ‘sem’

谁能帮我解开这个谜语?非常感谢您的任何建议!

4

0 回答 0