安装rmarkdown软件包会给我非零的退出状态

时间:2020-10-29 23:03:03

标签: r-markdown

我对RStudio完全陌生。因此,我对我的专长深表歉意。 对install.packages("rmarkdown")下面第一个代码的响应。

然后,当我尝试转到“新文件Rmarkdown”时,出现警告:“创建R Markdown文档需要rmarkdown软件包的更新版本。要立即安装此软件包吗?”

接受后,我会在下面看到第二个代码。

我该怎么做才能解决问题?您可以帮助一个初学者吗?感谢您的耐心等待。我在OS Sierra 10.12.6上使用RStudio 1.3.1093

'''

There is a binary version available but the source version is later:
          binary source needs_compilation
rmarkdown    2.3    2.5             FALSE

installing the source package ‘rmarkdown’

provo con l'URL 'https://cran.rstudio.com/src/contrib/rmarkdown_2.5.tar.gz'
Content type 'application/x-gzip' length 3203415 bytes (3.1 MB)
==================================================
downloaded 3.1 MB

Warning in file(con, "r") :
  cannot open file '/var/db/timezone/zoneinfo/+VERSION': No such file or directory
dyld: lazy symbol binding failed: Symbol not found: _utimensat
  Referenced from: /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libR.dylib (which was built for Mac OS X 10.13)
  Expected in: /usr/lib/libSystem.B.dylib

dyld: Symbol not found: _utimensat
  Referenced from: /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libR.dylib (which was built for Mac OS X 10.13)
  Expected in: /usr/lib/libSystem.B.dylib

/Library/Frameworks/R.framework/Resources/bin/INSTALL: line 34: 51734 Done                    echo 'tools:::.install_packages()'
     51735 Abort trap: 6           | R_DEFAULT_PACKAGES= LC_COLLATE=C "${R_HOME}/bin/R" $myArgs --no-echo --args ${args}
Warning in install.packages :
  installation of package ‘rmarkdown’ had non-zero exit status

The downloaded source packages are in
    ‘/private/var/folders/_3/fpj05lzj5zj03typ4t6k3wlh0000gn/T/RtmpMVE5wW/downloaded_packages’ 







Installing 'rmarkdown' for R Markdown...
  There is a binary version available but the source version is later:
          binary source needs_compilation
rmarkdown    2.3    2.5             FALSE
installing the source package ‘rmarkdown’

provo con l'URL 'https://cran.rstudio.com/src/contrib/rmarkdown_2.5.tar.gz'
Content type 'application/x-gzip' length 3203415 bytes (3.1 MB)
==================================================
downloaded 3.1 MB

Warning in file(con, "r") :
  cannot open file '/var/db/timezone/zoneinfo/+VERSION': No such file or directory
dyld: lazy symbol binding failed: Symbol not found: _utimensat
  Referenced from: /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libR.dylib (which was built for Mac OS X 10.13)
  Expected in: /usr/lib/libSystem.B.dylib

dyld: Symbol not found: _utimensat
  Referenced from: /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libR.dylib (which was built for Mac OS X 10.13)
  Expected in: /usr/lib/libSystem.B.dylib

/Library/Frameworks/R.framework/Resources/bin/INSTALL: line 34: 51767 Done                    echo 'tools:::.install_packages()'
     51768 Abort trap: 6           | R_DEFAULT_PACKAGES= LC_COLLATE=C "${R_HOME}/bin/R" $myArgs --no-echo --args ${args}

The downloaded source packages are in
    ‘/private/var/folders/_3/fpj05lzj5zj03typ4t6k3wlh0000gn/T/RtmpDhf44F/downloaded_packages’


✔ Package 'rmarkdown' successfully installed.
Warning message:
In utils::install.packages("rmarkdown", repos = "https://cran.rstudio.com/") :
  installation of package ‘rmarkdown’ had non-zero exit status

1 个答案:

答案 0 :(得分:0)

尝试install.packages(“rmarkdown”, dep = TRUE)。我还看到有关时区的信息,您的PC是否在正确的时间?我发现安装时间不正确,因为PC的时间不正确。您还需要使用Rmarkdown安装乳胶