想用 bookdown 写夹杂公式的文章生成pdf
安装 tinytex
包后,输入 tinytex::install_tinytex()
,失败信息如下:
试开URL’http://mirror.ctan.org/systems/texlive/tlnet/install-tl.zip'
Content length 332 bytes
downloaded 21.5 MB
试开URL’https://yihui.name/gh/tinytex/tools/pkgs-custom.txt'
Content length 81 bytes
试开URL’https://yihui.name/gh/tinytex/tools/pkgs-custom.txt'
试开URL’https://yihui.name/gh/tinytex/tools/pkgs-custom.txt'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 81 100 81 0 0 81 0 0:00:01 --:--:-- 0:00:01 96
100 142 100 142 0 0 142 0 0:00:01 0:00:01 --:--:-- 142
0 0 0 0 0 0 0 0 --:--:-- 0:00:21 --:--:-- 0curl: (7) Failed to connect to raw.githubusercontent.com port 443: Timed out
Error in download.file(url, output, ..., method = method) :
'curl' call had nonzero exit status
此外: Warning messages:
1: In download.file(url, output, ..., method = method) :
URL 'https://raw.githubusercontent.com/yihui/tinytex/master/tools/pkgs-custom.txt': status was 'Couldn't connect to server'
2: In download.file(url, output, ..., method = method) :
InternetOpenUrl失败:’无法与服务器建立连接'
3: In download.file(url, output, ..., method = method) :
InternetOpenUrl失败:’无法与服务器建立连接'
Please quit and reopen your R session and IDE (if you are using one, such as RStudio or Emacs) and check if tinytex:::is_tinytex() is TRUE.
然后试了 tinytex:::install_prebuilt()
显示
试开URL’https://ci.appveyor.com/api/projects/yihui/tinytex/artifacts/TinyTeX.zip'
length 93209170 bytes (88.9 MB)
downloaded 8.4 MB
试开URL’https://ci.appveyor.com/api/projects/yihui/tinytex/artifacts/TinyTeX.zip'
Content type 'application/octet-stream' length 93209170 bytes (88.9 MB)
downloaded 348 KB
tlmgr path add
Warning messages:
1: In download.file(url, output, ..., method = method) :
downloaded length 8814592 != reported length 93209170
2: In download.file(url, output, ..., method = method) :
URL 'https://appveyorcidatav2.blob.core.windows.net/yihui-27038/tinytex/1-0-615/7v20vg9wo4s56e57/TinyTeX.zip?sv=2015-12-11&sr=c&sig=BSTPgOWmjuMI31v4TKhbxQGweFJK4pf3Q7nKoQqPyXo%3D&st=2019-11-04T03%3A03%3A43Z&se=2019-11-04T03%3A09%3A43Z&sp=r': status was 'Failure when receiving data from the peer'
3: In download.file(url, output, ..., method = method) :
downloaded length 356352 != reported length 93209170
4: In unzip(path, exdir = win_app_dir()) : 从zip文件中抽取1时出了错
5: In tlmgr(c("path", match.arg(action))) :
TeX Live does not seem to be installed. See https://yihui.name/tinytex/.
系统 Win10,R 版本 3.6.1
请问该如何解决呢?