Error loading aplpack in R

I am new to R and I just installed R 3.3.0 GUI 1.68 Mavericks build (7202)today. After doing

install.packages("aplpack", depend = TRUE)
library(aplpack)

The following error message appeared:

Loading required package: tcltk
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
Warning message:
running command ''/usr/bin/otool' -L '/Library/Frameworks/R.framework/Resources/library/tcltk/libs//tcltk.so'' had status 1 

I tried reinstalling XQuartz, but the error remains.

0
source share
2 answers

You did not say what the operating system is, but this is an error that occurs on some OSX systems after El Capitan. Try to run

xcode-select --install
+1
source

This bug has been magically fixed with help xcode-select --installthat reinstalls command line tools.

This issue is supposed to have something to do with updating OS X.

0
source

All Articles