gpt4 book ai didi

r - 升级 R/R Studio 后出现 fatal error (无效的事件开发人员路径)

转载 作者:行者123 更新时间:2023-12-05 07:52:14 26 4
gpt4 key购买 nike

我刚刚将 R 和 R Studio 升级到最新版本。

我正在尝试加载包 RHRV,但 R Studio 由于 fatal error 而中止 session 。它与以下错误相关联:

loading package: tcltk

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
Loading required package: tkrplot

命令:

图书馆(“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

运行以下命令会使 R Studio 崩溃:

library("tkrplot")

这里有一些额外的信息:

sessionInfo("tcltk")

R version 3.2.2 (2015-08-14)
Platform: x86_64-apple-darwin13.4.0 (64-bit)
Running under: OS X 10.11 (El Capitan)

locale:
[1] en_CA.UTF-8/en_CA.UTF-8/en_CA.UTF-8/C/en_CA.UTF-8/en_CA.UTF-8

attached base packages:
[1] tcltk

loaded via a namespace (and not attached):
[1] Rcpp_0.12.2 Formula_1.2-1 cluster_2.0.3 magrittr_1.5 splines_3.2.2 MASS_7.3-43 grDevices_3.2.2
[8] munsell_0.4.2 colorspace_1.2-6 lattice_0.20-33 minqa_1.2.4 stringr_1.0.0 plyr_1.8.3 tools_3.2.2
[15] utils_3.2.2 nnet_7.3-10 grid_3.2.2 gtable_0.1.2 nlme_3.1-121 latticeExtra_0.6-26 stats_3.2.2
[22] datasets_3.2.2 survival_2.38-3 lme4_1.1-10 digest_0.6.8 base_3.2.2 Matrix_1.2-2 gridExtra_2.0.0
[29] RColorBrewer_1.1-2 nloptr_1.0.4 reshape2_1.4.1 ggplot2_1.0.1 acepack_1.3-3.3 graphics_3.2.2 effects_3.0-4
[36] rpart_4.1-10 stringi_1.0-1 methods_3.2.2 scales_0.3.0 Hmisc_3.17-0 lmerTest_2.0-29 foreign_0.8-65
[43] proto_0.3-10

sessionInfo("tkrplot")
R version 3.2.2 (2015-08-14)
Platform: x86_64-apple-darwin13.4.0 (64-bit)
Running under: OS X 10.11 (El Capitan)

locale:
[1] en_CA.UTF-8/en_CA.UTF-8/en_CA.UTF-8/C/en_CA.UTF-8/en_CA.UTF-8

attached base packages:
character(0)

other attached packages:
[1] tkrplot_0.0-23

loaded via a namespace (and not attached):
[1] Rcpp_0.12.2 Formula_1.2-1 cluster_2.0.3 magrittr_1.5 splines_3.2.2 MASS_7.3-43 grDevices_3.2.2
[8] munsell_0.4.2 colorspace_1.2-6 lattice_0.20-33 minqa_1.2.4 stringr_1.0.0 plyr_1.8.3 tcltk_3.2.2
[15] tools_3.2.2 utils_3.2.2 nnet_7.3-10 grid_3.2.2 gtable_0.1.2 nlme_3.1-121 latticeExtra_0.6-26
[22] stats_3.2.2 datasets_3.2.2 survival_2.38-3 lme4_1.1-10 digest_0.6.8 base_3.2.2 Matrix_1.2-2
[29] gridExtra_2.0.0 RColorBrewer_1.1-2 nloptr_1.0.4 reshape2_1.4.1 ggplot2_1.0.1 acepack_1.3-3.3 graphics_3.2.2
[36] effects_3.0-4 rpart_4.1-10 stringi_1.0-1 methods_3.2.2 scales_0.3.0 Hmisc_3.17-0 lmerTest_2.0-29
[43] foreign_0.8-65 proto_0.3-10

马特

最佳答案

非常感谢 Ben,我可以提供解决问题的方法。问题是 El Capitan 有一个有点未知的 xcode 问题。

打开终端应用程序并输入:

xcode-select --install

加载运行 xcode 所需的补丁需要几分钟时间。上述错误在多个实例中突出显示,这是解决方法。

然后我重新启动我的电脑并直接从源代码加载包“tkrplot”:

install.packages("tkrplot", type="source")

一旦我完成了这三个步骤,我就能够毫无问题地加载包“RHRV”和相关包“tkrplot”和“tcltk”。

关于r - 升级 R/R Studio 后出现 fatal error (无效的事件开发人员路径),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34053682/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com