I want to use package semPlot and I get the error message as follows.
library(semPlot) Error: package or namespace load failed for ‘semPlot’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]): namespace ‘rlang’ 1.0.6 is already loaded, but >= 1.1.0 is required In addition: Warning message: package ‘semPlot’ was built under R version 4.2.3
However, the latest version of rlang is 1.0.6 https://cran.r-project.org/src/contrib/Archive/rlang/
I have tried these codes: install.packages("rlang") library(semPlot) install.packages("semPlot", dependencies = TRUE)
To elaborate on the comment, you can install the development version as set out on the github repo. The instructions there suggest using
pak:pgk_install(). However if you do not have this package you can also usedevtools::install_github().The
paklibrary seems to be primarily to install and manage packages, whiledevtoolscontains useful functions for package developers, so if you have neither installed already you may preferpakif you're not developing packages.