本文介绍了在R中加载aplpack时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对R还是很陌生,我今天刚刚安装了R 3.3.0 GUI 1.68 Mavericks build (7202).执行完

I'm fairly new to R and I've just installed R 3.3.0 GUI 1.68 Mavericks build (7202) today. After executing

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

我收到以下错误消息:

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

我尝试重新安装XQuartz,但错误仍然存​​在.

I've tried reinstalling XQuartz, but error remains.

推荐答案

您没有说操作系统是什么,但这是El Capitan之后在某些OSX系统中出现的错误.尝试运行

You didn't say what the operating system is but this is an error that arises in some OSX systems after an El Capitan. Try running

xcode-select --install

这篇关于在R中加载aplpack时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-13 01:47