Problems installing sjPlot and jtools

Hi everyone,

I experience some problems installing "sjPlot" and "jtools" could someone help me?
Those are the error messages i get:

library(jtools)
Fehler: package or namespace load failed for ‘jtools’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
Namensraum ‘rlang’ 0.4.6 ist bereits geladen, aber >= 0.4.10 wird gefordert
Zusätzlich: Warnmeldung:
Paket ‘jtools’ wurde unter R Version 3.6.2 erstellt

library(sjPlot)
Fehler: package or namespace load failed for ‘sjPlot’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
Namensraum ‘rlang’ 0.4.6 ist bereits geladen, aber >= 0.4.10 wird gefordert
Zusätzlich: Warnmeldung:
Paket ‘sjPlot’ wurde unter R Version 3.6.2 erstellt

This is asking you to update the rlang package

install.packages("rlang")
1 Like

Thx for your help. :slight_smile:
Unfortunately updating "rlang" did not work, I got following error message:

installing the source package ‘rlang’

versuche URL 'https://cran.rstudio.com/src/contrib/rlang_0.4.12.tar.gz'
Content type 'application/x-gzip' length 861658 bytes (841 KB)

downloaded 841 KB

  • installing source package ‘rlang’ ...
    ** Paket ‘rlang’ erfolgreich entpackt und MD5 Summen überprüft
    ** 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 ‘rlang’
  • removing ‘/Library/Frameworks/R.framework/Versions/3.6/Resources/library/rlang’
  • restoring previous ‘/Library/Frameworks/R.framework/Versions/3.6/Resources/library/rlang’
    Warning in install.packages :
    installation of package ‘rlang’ had non-zero exit status

The downloaded source packages are in
‘/private/var/folders/wk/l2l968s96ll5klldh2sfgrjm0000gn/T/Rtmp44JD8h/downloaded_packages’

Since you are using an old R version you are forced to compile packages from source, for that you need to install Xcode in your system (not in R) and the recommended development tools for macOS systems.
https://cran.r-project.org/bin/macosx/tools/

1 Like

Thanks for your support. It seems to be working now, I just updated my R and R-Studio Version to:

R-Version: R 4.1.1 GUI 1.77 High Sierra build (7985)
R-Studio-Version: 2021.09.0 Build 351

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.