非常新,所以我很抱歉,如果我做了一些愚蠢的事情或错过了一步!
运行在windows 10企业版上的我的公司允许我使用的是:
R版3.5.1 ( 2018 -07-02) -“羽毛喷雾”版权(C) 2018年统计计算基金会
平台:x86_64-W64-mingw32 32/x64(64位)
运行中的文本是
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发布于 2021-01-12 03:49:46
问题是R正在尝试安装xfun的二进制版本,即0.13版本。
但是,tinytex包(版本0.22)需要0.19或更高版本的xfun。
如果您使用的是R的旧版本(3.5.1),则可能很难升级。你可以尝试三件事。
首先,卸载xfun和tinytex的任何安装版本。下载Rtools 35 从这一页并安装它。然后从源安装包:
install.packages(c("xfun", "tinytex"), type = "source")如果这不起作用,您可以尝试从CRAN (新欢和锡丝)下载最新的压缩Windows二进制文件,并从文件中安装。
install.packages(file.choose(), repos = NULL)它将启动一个用于文件选择的对话框。,但考虑到旧的R版本,很可能无法工作。
最后一个选项是从CRAN时光机下载R3.5.1二进制文件的旧版本。以下是新欢和锡丝的直接链接。下载压缩后的Windows二进制文件并从上面描述的文件中安装。
https://stackoverflow.com/questions/65677567
复制相似问题