我在R中安装ConvergenceConcepts包时遇到问题,它会抛出一条错误消息说';融合概念&x27;具有非零退出状态

我在R中安装ConvergenceConcepts包时遇到问题,它会抛出一条错误消息说';融合概念&x27;具有非零退出状态,r,R,因此,我尝试在RStudio中安装一个包ConvergenceConcepts,它向我发送了一条错误消息: ERROR: lazy loading failed for package ‘ConvergenceConcepts’ * removing ‘/Library/Frameworks/R.framework/Versions/3.6/Resources/library/ConvergenceConcepts’ 以及一个警告,该包具有非零退出状态。我如何解决这个问题 加载Converge

因此,我尝试在RStudio中安装一个包ConvergenceConcepts,它向我发送了一条错误消息:

ERROR: lazy loading failed for package ‘ConvergenceConcepts’
* removing ‘/Library/Frameworks/R.framework/Versions/3.6/Resources/library/ConvergenceConcepts’
以及一个警告,该包具有非零退出状态。我如何解决这个问题

加载ConvergenceConcepts库时出错:

    Loading required package: tcltk
xcrun: error: active developer path ("/Library/Developer/CommandLineTools") does not exist
Use `sudo xcode-select --switch path/to/Xcode.app` to specify the Xcode that you wish to use for command line developer tools, or use `xcode-select --install` to install the standalone command line developer tools.
See `man xcode-select` for more details.
Error: package or namespace load failed for ‘tcltk’:
 .onLoad failed in loadNamespace() for 'tcltk', details:
  call: dyn.load(file, DLLpath = DLLpath, ...)
  error: unable to load shared object '/Library/Frameworks/R.framework/Versions/3.6/Resources/library/tcltk/libs/tcltk.so':
  dlopen(/Library/Frameworks/R.framework/Versions/3.6/Resources/library/tcltk/libs/tcltk.so, 10): Library not loaded: /opt/X11/lib/libX11.6.dylib
  Referenced from: /Library/Frameworks/R.framework/Versions/3.6/Resources/library/tcltk/libs/tcltk.so
  Reason: image not found
Error: package ‘tcltk’ could not be loaded
In addition: Warning message:
In system2("/usr/bin/otool", c("-L", shQuote(DSO)), stdout = TRUE) :
  running command ''/usr/bin/otool' -L '/Library/Frameworks/R.framework/Resources/library/tcltk/libs//tcltk.so'' had status 1
尝试添加tcltk库时出错:

图书馆(tcltk)


@MrFlick现在,我添加了整个错误消息。如果您尝试
install.packages(“ConvergenceConcepts”,type=“binary”)
?@MrFlick现在我可以安装包了,但是当我尝试加载库时,它给了我一个错误,我需要一个包tcltk(这是基本包)。当我尝试添加库Tlctk时,它再次给我一个错误:“active developer path不存在”,我将在原始帖子中添加这两个错误。您安装了吗?@MrFlick它给我一个消息,该软件包不适用于R 3.6.3。现在,即使添加了binary=TRUE参数,也没有安装“ConvergenceConcepts”包。
xcrun: error: active developer path ("/Library/Developer/CommandLineTools") does not exist
Use `sudo xcode-select --switch path/to/Xcode.app` to specify the Xcode that you wish to use for command line developer tools, or use `xcode-select --install` to install the standalone command line developer tools.
See `man xcode-select` for more details.
Error: package or namespace load failed for ‘tcltk’:
 .onLoad failed in loadNamespace() for 'tcltk', details:
  call: dyn.load(file, DLLpath = DLLpath, ...)
  error: unable to load shared object '/Library/Frameworks/R.framework/Versions/3.6/Resources/library/tcltk/libs/tcltk.so':
  dlopen(/Library/Frameworks/R.framework/Versions/3.6/Resources/library/tcltk/libs/tcltk.so, 10): Library not loaded: /opt/X11/lib/libX11.6.dylib
  Referenced from: /Library/Frameworks/R.framework/Versions/3.6/Resources/library/tcltk/libs/tcltk.so
  Reason: image not found
In addition: Warning message:
In system2("/usr/bin/otool", c("-L", shQuote(DSO)), stdout = TRUE) :
  running command ''/usr/bin/otool' -L '/Library/Frameworks/R.framework/Resources/library/tcltk/libs//tcltk.so'' had status 1