tinytex::install_tinytex(dir = "D:/TinyTeX")
出错日志
trying URL 'http://mirror.ctan.org/systems/texlive/tlnet/install-tl.zip'
Content type 'application/zip' length 19730530 bytes (18.8 MB)
downloaded 18.8 MB
trying URL 'https://github.com/yihui/tinytex/raw/master/tools/pkgs-custom.txt'
Error in download.file("https://github.com/yihui/tinytex/raw/master/tools/pkgs-custom.txt", :
cannot open URL 'https://github.com/yihui/tinytex/raw/master/tools/pkgs-custom.txt'
In addition: Warning message:
In download.file("https://github.com/yihui/tinytex/raw/master/tools/pkgs-custom.txt", :
InternetOpenUrl failed: '无法与服务器建立连接'
Restart your R session and check if tinytex:::is_tinytex() is TRUE.
控制台信息
sessionInfo()
R version 3.5.0 (2018-04-23)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1
Matrix products: default
locale:
[1] LC_COLLATE=Chinese (Simplified)_People's Republic of China.936
[2] LC_CTYPE=Chinese (Simplified)_People's Republic of China.936
[3] LC_MONETARY=Chinese (Simplified)_People's Republic of China.936
[4] LC_NUMERIC=C
[5] LC_TIME=Chinese (Simplified)_People's Republic of China.936
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] compiler_3.5.0 tools_3.5.0 tinytex_0.5
安装最新版后,错误一样
devtools::session_info("tinytex")
Session info ----------------------------------------------------------------
setting value
version R version 3.5.0 (2018-04-23)
system x86_64, mingw32
ui Rgui
language (EN)
collate Chinese (Simplified)_People's Republic of China.936
tz Asia/Taipei
date 2018-06-16
Packages --------------------------------------------------------------------
package * version date source
tinytex 0.5.6 2018-06-16 Github (yihui/tinytex@16cc9fa)
PS
这台电脑当前账户是 Administrator ,用devtools安装过github上的包没问题