之前看到一些类似帖子但是好像都没有解决问题。。。我用Rstudio
studio 安装tinytex 但是一直报错请各位大大看一下是为什么。我链接了vpn
vpn以后还是不行
R version 4.0.2 (2020-06-22) -- "Taking Off Again"
Copyright (C) 2020 The R Foundation for Statistical Computing
Platform: x86_64-apple-darwin17.0 (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
Natural language support but running in an English locale
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> library(tinytex)
> tinytex::install_tinytex()
The directory /usr/local/bin is not writable. I recommend that you make it writable. See https://github.com/yihui/tinytex/issues/24 for more info.
trying URL 'https://yihui.org/tinytex/TinyTeX-1.tgz'
Content type 'application/octet-stream' length 64726803 bytes (61.7 MB)
====================================
downloaded 45.1 MB
trying URL 'https://yihui.org/tinytex/TinyTeX-1.tgz'
Content type 'application/octet-stream' length 64726803 bytes (61.7 MB)
=======================
downloaded 29.3 MB
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 109 100 109 0 0 17 0 0:00:06 0:00:06 --:--:-- 24
0 0 0 0 0 0 0 0 0 0 0 0 0 0 --:--:-- 0:00:12 --:--:-- 0
0 0 0 0 0 0 0 0 0 61.7M 0 48588 0 0 2991 0 6:00:100 61.7M 100 61.7M 0 0 17108 0 1:03:03 1:03:03 --:--:-- 3099
add_link_dir_dir: destination /usr/local/bin not writable, no links from /Users/shuozhang/Library/TinyTeX/bin/x86_64-darwin.
tlmgr: An error has occurred. See above messages. Exiting.
TLUtils::add_remove_symlinks: add of symlinks had 1 error(s), see messages above.
tlmgr conf auxtrees add '/Library/Frameworks/R.framework/Resources/share/texmf'
Warning messages:
1: In file(con, "r") :
cannot open file '/texmf-dist/web2c/fmtutil.cnf': No such file or directory
2: In download.file(url, output, ..., method = method) :
downloaded length 47251456 != reported length 64726803
3: In download.file(url, output, ..., method = method) :
URL 'https://appveyorcidatav2.blob.core.windows.net/yihui-27038/tinytex/1-0-1211/to2656wr1eu4il67/TinyTeX-1.tgz?sv=2015-12-11&sr=c&sig=Jj5F1I9W0e%2FcQfyzTprrsQVU6KPUaRgETPqc4ieBo2Q%3D&st=2020-10-05T04%3A25%3A11Z&se=2020-10-05T04%3A31%3A11Z&sp=r': status was 'Failure when receiving data from the peer'
4: In download.file(url, output, ..., method = method) :
downloaded length 30736384 != reported length 64726803
5: In download.file(url, output, ..., method = method) :
URL 'https://appveyorcidatav2.blob.core.windows.net/yihui-27038/tinytex/1-0-1211/to2656wr1eu4il67/TinyTeX-1.tgz?sv=2015-12-11&sr=c&sig=3szjgIsdBWb7%2FFhQ7LpWNl6jEklfAb4awEdV8Ph50hA%3D&st=2020-10-05T04%3A45%3A34Z&se=2020-10-05T04%3A51%3A34Z&sp=r': status was 'Failure when receiving data from the peer'