Error in installing semPlot

Hi, I'm new to RStudio and I would like to install semPlot. However, an error message popped up saying that there is no package called ‘backports’. I attempted to install backports instead, but it also failed and showed the message as follows:

  • installing source package ‘backports’ ...
    ** package ‘backports’ successfully unpacked and MD5 sums checked
    ** using staged installation
    ** libs
    xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
    ERROR: compilation failed for package ‘backports’
  • removing ‘/Library/Frameworks/R.framework/Versions/3.6/Resources/library/backports’
    Warning in install.packages :
    installation of package ‘backports’ had non-zero exit status

I have tried different ways but still cannot fix it. I would be grateful if anyone can help.
Thank you!

Hi @yantszch,
Welcome to the RStudio Community Forum.

Looks like you've got a tool "xcrun" missing that is required to compile the package code.
I googled the error - see here for possible solution:
https://ma.ttias.be/mac-os-xcrun-error-invalid-active-developer-path-missing-xcrun/

HTH

It works! Thanks a lot!

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