简体   繁体   English

package 'tinytex' 的安装具有非零退出状态

[英]installation of package 'tinytex' had non-zero exit status

Very new at this so I am sorry if I have done something stupid or missed a step!在这方面非常新,所以如果我做了一些愚蠢的事情或错过了一步,我很抱歉!

Running on windows 10 enterprise Version of R my company allows me to use is:在windows 10企业版R上运行我公司允许我使用的是:

R version 3.5.1 (2018-07-02) -- "Feather Spray" Copyright (C) 2018 The R Foundation for Statistical Computing R 版本 3.5.1 (2018-07-02) -- "Feather Spray" Copyright (C) 2018 The R Foundation for Statistical Computing

Platform: x86_64-w64-mingw32/x64 (64-bit)平台:x86_64-w64-mingw32/x64(64位)

Text from run is运行中的文本是

install.packages('tinytex')
also installing the dependency 'xfun'
  There are binary versions available but the source versions are later:
        binary source needs_compilation
xfun      0.13   0.20              TRUE
tinytex   0.22   0.28             FALSE

  Binaries will be installed
trying URL 'https://cran.ms.unimelb.edu.au/bin/windows/contrib/3.5/xfun_0.13.zip'
Content type 'application/zip' length 184719 bytes (180 KB)
downloaded 180 KB

package 'xfun' successfully unpacked and MD5 sums checked

The downloaded binary packages are in
        C:\Users\p1311516\AppData\Local\Temp\Rtmpu0Onn4\downloaded_packages
installing the source package 'tinytex'

trying URL 'https://cran.ms.unimelb.edu.au/src/contrib/tinytex_0.28.tar.gz'
Content type 'application/octet-stream' length 27595 bytes (26 KB)
downloaded 26 KB

In R CMD INSTALL
* installing *source* package 'tinytex' ...
** package 'tinytex' successfully unpacked and MD5 sums checked
** R
** inst
** byte-compile and prepare package for lazy loading
Error in `loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :`
  namespace 'xfun' 0.13 is being loaded, but >= 0.19 is required
ERROR: lazy loading failed for package 'tinytex'
* removing 'C:/Program Files/R/R-3.5.1/library/tinytex'

The downloaded source packages are in
        'C:\Users\p1311516\AppData\Local\Temp\Rtmpu0Onn4\downloaded_packages'
Warning message:
In install.packages("tinytex") :
  installation of package 'tinytex' had non-zero exit status

The issue is that R is trying to install the binary version of xfun which is version 0.13.问题是 R 正在尝试安装xfun的二进制版本,即 0.13 版。

However, the tinytex package (version 0.22) requires version 0.19 or higher of xfun .但是, tinytex package(版本 0.22)需要xfun的 0.19 或更高版本。

Given that you are stuck with an old version of R (3.5.1), it may be difficult to upgrade.鉴于您使用的是旧版本的 R (3.5.1),可能很难升级。 You can try three things.你可以尝试三件事。

First, uninstall any installed versions of xfun and tinytex .首先,卸载任何已安装的xfuntinytex版本。 Download Rtools 35 from this page and install it. 从此页面下载 Rtools 35 并安装它。 Then install the packages from source:然后从源安装包:

install.packages(c("xfun", "tinytex"), type = "source")

If that doesn't work: you could try downloading the latest zipped Windows binaries from CRAN ( xfun and tinytex ) and installing from the files.如果这不起作用:您可以尝试从 CRAN( xfuntinytex )下载最新的压缩 Windows 二进制文件并从文件安装。

install.packages(file.choose(), repos = NULL)

which will launch a dialog for file selection.这将启动一个文件选择对话框。 BUT this is quite likely not to work given your old R version.但是鉴于您的旧 R 版本,这很可能不起作用。

The last option is to download old versions of the binaries for R 3.5.1 from the CRAN time machine .最后一个选项是从CRAN 时间机器下载旧版本的 R 3.5.1 二进制文件。 Here are direct links for xfun and tinytex .这是xfuntinytex的直接链接。 Download the zipped Windows binaries and install from files as described above.下载压缩的 Windows 二进制文件并从上述文件安装。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM