RMarkdown错误:软件包“ yaml”的编译失败

时间:2019-06-20 18:54:11

标签: r yaml rstudio r-markdown

我将R更新为最新版本“ R版本3.3.3(2017-03-06)”。我正在使用macOS Mojave。

现在,当我尝试在Markdown中编织代码时,出现错误。我认为这是因为我没有“ yaml”软件包的更新版本。但是,当我尝试更新“ yaml”软件包时,出现以下错误:

installing the source package ‘yaml’

trying URL 'https://cran.rstudio.com/src/contrib/yaml_2.2.0.tar.gz'
Content type 'application/x-gzip' length 89447 bytes (87 KB)
==================================================
downloaded 87 KB

Warning in strptime(xx, f <- "%Y-%m-%d %H:%M:%OS", tz = tz) :
  unknown timezone 'zone/tz/2019a.1.0/zoneinfo/America/Chicago'
* installing *source* package ‘yaml’ ...
** package ‘yaml’ successfully unpacked and MD5 sums checked
** libs
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
ERROR: compilation failed for package ‘yaml’
* removing ‘/Library/Frameworks/R.framework/Versions/3.3/Resources/library/yaml’
* restoring previous ‘/Library/Frameworks/R.framework/Versions/3.3/Resources/library/yaml’
Warning in install.packages :
  installation of package ‘yaml’ had non-zero exit status

The downloaded source packages are in
    ‘/private/var/folders/_r/cgv1gmqx1vzgv25k1k805lyw0000gn/T/RtmpagnKIL/downloaded_packages’

0 个答案:

没有答案