Closed lisa-sk closed 3 years ago
I may have found the problem (not solved yet):
There seems to be an issue with downloading the development version of semTools :
devtools::install_github("simsem/semTools/semTools")
WARNING: Rtools is required to build R packages, but no version of Rtools compatible with R 4.1.0 was found. (Only the following incompatible version(s) of Rtools were found:3.4)
Please download and install Rtools 4.0 from https://cran.r-project.org/bin/windows/Rtools/.
Downloading GitHub repo simsem/semTools@HEAD
These packages have more recent versions available.
It is recommended to update all of them.
Which would you like to update?
1: All
2: CRAN packages only
3: None
4: lavaan (0.6-8 -> 0.6-9) [CRAN]
Enter one or more numbers, or an empty line to skip updates:
WARNING: Rtools is required to build R packages, but no version of Rtools compatible with R 4.1.0 was found. (Only the following incompatible version(s) of Rtools were found:3.4)
Please download and install Rtools 4.0 from https://cran.r-project.org/bin/windows/Rtools/.
Warning message:
In normalizePath(path.expand(path), winslash, mustWork) :
path[5]="V:/MEDEWE~1/040814~1.R/R/R-41~1.0/library": Het systeem kan het opgegeven pad niet vinden
Warning message:
package "methods" in options("defaultPackages") was not found
Warning messages:
1: In normalizePath(path.expand(path), winslash, mustWork) :
path[3]="V:/MEDEWE~1/040814~1.R/R/R-41~1.0/library": Het systeem kan het opgegeven pad niet vinden
2: In normalizePath(path.expand(path), winslash, mustWork) :
path[4]="V:/MEDEWE~1/040814~1.R/R/R-41~1.0/library": Het systeem kan het opgegeven pad niet vinden
Warning message:
In normalizePath(path.expand(path), winslash, mustWork) :
path[3]="V:/MEDEWE~1/040814~1.R/R/R-41~1.0/library": Het systeem kan het opgegeven pad niet vinden
Warning message:
In normalizePath(path.expand(path), winslash, mustWork) :
path[3]="V:/MEDEWE~1/040814~1.R/R/R-41~1.0/library": Het systeem kan het opgegeven pad niet vinden
During startup - Warning messages:
1: package 'datasets' in options("defaultPackages") was not found
2: package 'utils' in options("defaultPackages") was not found
3: package 'grDevices' in options("defaultPackages") was not found
4: package 'graphics' in options("defaultPackages") was not found
5: package 'stats' in options("defaultPackages") was not found
6: package 'methods' in options("defaultPackages") was not found
Error in normalizePath(path.expand(path), winslash, mustWork) :
path[1]="V:/MEDEWE~1/040814~1.R/R/R-41~1.0/library/compiler": Het systeem kan het opgegeven pad niet vinden
Calls: getNamespace ... loadNamespace -> makeNamespace -> setNamespaceInfo -> normalizePath
Execution halted
Error: Failed to install 'semTools' from GitHub:
System command 'Rcmd.exe' failed, exit status: 1, stdout + stderr (last 10 lines):
E> 1: package 'datasets' in options("defaultPackages") was not found
E> 2: package 'utils' in options("defaultPackages") was not found
E> 3: package 'grDevices' in options("defaultPackages") was not found
E> 4: package 'graphics' in options("defaultPackages") was not found
E> 5: package 'stats' in options("defaultPackages") was not found
E> 6: package 'methods' in options("defaultPackages") was not found
E> Error in normalizePath(path.expand(path), winslash, mustWork) :
E> path[1]="V:/MEDEWE~1/040814~1.R/R/R-41~1.0/library/compiler": Het systeem kan het opgegeven pad niet vinden
E> Calls: getNamespace ... loadNamespace -> makeNamespace -> setNamespaceInfo -> normalizePath
E> Execution halted
In addition: Warning messages:
1: In normalizePath(path.expand(path), winslash, mustWork) :
path[2]="V:/MEDEWE~1/040814~1.R/R/R-41~1.0/library": Het systeem kan het opgegeven pad niet vinden
2: In normalizePath(path.expand(path), winslash, mustWork) :
path[3]="V:/MEDEWE~1/040814~1.R/R/R-41~1.0/library": Het systeem kan het opgegeven pad niet vinden
I do have Rtools version 4.0 installed, but R does not seem to find it.
I hope you were able to resolve your issue with Rtools so you can use the devtools
package. Since this is not an issue with semTools
, I will close this issue. For what it is worth, semTools
0.5-5 is on its way to CRAN now, so you will be able to have the past 6 months of progress from there soon.
Intro
A month or two ago, I had a similar issue as #43. I used the proposed solutions of updating the packages from there:
This seemed to have fixed the problem then, but re-running my scripts now does not work.
Problem setup
Unfortunately I cannot share my dataset, but this is the script that I run to fit my model:
Then, I want to show a standardized summary, but this fails:
Based on another thread, I found that fitmeasures should solve this problem, but it seems it does not for me:
Note,
summary(model1)
does work as expected, and the model converged:Environment
This is my output of sessionInfo: