Issues with loading semPlot

Hi! I'd like to do SEM, but it seems I can't library semPlot. Anyone know how to solve this? My R version is 1.4.1103. Error report below:

Error: package or namespace load failed for ‘semPlot’:
.onLoad failed in loadNamespace() for 'OpenMx', details:
call: fun(libname, pkgname)
error: function 'Rcpp_precious_remove' not provided by package 'Rcpp'

Thanks a lot.

Hi @antiutopia and welcome to the RStudio Community :partying_face: :partying_face: :partying_face: :partying_face: :partying_face:

These are my suggestions: restart your RStudio session then reinstall the semPlot package with: install.packages("semPlot", dependencies = TRUE).

Let me know if this fixes your isse.

Thanks, @gueyenono ! I've tried your method, but still error report when I library semPlot:

Error: package or namespace load failed for ‘semPlot’:
.onLoad failed in loadNamespace() for 'OpenMx', details:
call: fun(libname, pkgname)
error: function 'Rcpp_precious_remove' not provided by package 'Rcpp'

Any other suggestions? Thank you very much!

Try updating the Rcpp package, Do you get any error message?

install.packages("Rcpp")

Also, a small clarification, 1.4.1103 is your RStudio version, not your R version, they are not the same thing.

1 Like

Thanks a lot @andresrcs , the issue is solved!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.