I have an ARM based Windows 11 laptop. As such, there are a number of changes that Microsoft has made to Windows. One of these is that it deprecated WMIC, but that can be fixed by going into powershell as admin and entering "DISM /Online /Add-Capability /CapabilityName:WMIC~~~~". However, they have renamed system32 to System32 (C:\Windows\System32). I am wondering if that is related to the following error I get when running mplusModeler(). All syntax leading up to this is shown for clarity and reproducability.
library(lavaan)
# Holzinger and Swineford (1939) data
HS.data <- HolzingerSwineford1939
# Round data
library(dplyr)
HS.data.rounded <- HS.data %>%
mutate(across(where(is.numeric), round, digits=0))
library(MplusAutomation)
mplus_path <- file.path("C:", "Program Files", "Mplus", "Mplus.exe")
#Run model
par.HS <- mplusObject(
TITLE = "Parallel CFA Model;",
MODEL = "
cog ON x4-x9 (b);
cog @1;
x4-x9 (e);
",
rdata = HS.data.rounded
)
par.fit <- mplusModeler(par.HS, modelout = "HS_par.inp", run = 1L,
Mplus_command = mplus_path)
This results in the error related to system32:
Warning message:
In system(command, intern = TRUE, invisible = (!showOutput), wait = TRUE) :
running command 'C:\Windows\system32\cmd.exe /c cd "C:\Users\xxxxx" && "C:\Program Files\Mplus\Mplus.exe" "HS_par.inp"' had status 1
I have an ARM based Windows 11 laptop. As such, there are a number of changes that Microsoft has made to Windows. One of these is that it deprecated WMIC, but that can be fixed by going into powershell as admin and entering "DISM /Online /Add-Capability /CapabilityName:WMIC~~~~". However, they have renamed system32 to System32 (C:\Windows\System32). I am wondering if that is related to the following error I get when running mplusModeler(). All syntax leading up to this is shown for clarity and reproducability.
This results in the error related to system32: