2

在过去的 6 个月里,在莫斯科(俄罗斯)访问https://yihui.name/tinytex/网站变得非常困难,而且在过去的几天里是不可能的。我不知道它为什么被阻止,但只能使用 VPN 访问它。这个问题不允许我安装 Tinytex,因此我不能使用 bookdown 包。

例如,如果我尝试安装 tinytex,则会收到以下错误:

tinytex::install_tinytex()

trying URL 'http://mirror.ctan.org/systems/texlive/tlnet/install-tl.zip'
Content length 352 bytes downloaded 21.5 MB
trying URL 'https://yihui.name/gh/tinytex/tools/pkgs-custom.txt'
trying URL 'https://yihui.name/gh/tinytex/tools/pkgs-custom.txt'
trying URL 'https://yihui.name/gh/tinytex/tools/pkgs-custom.txt'
Error in xfun::download_file(..., quiet = Sys.getenv("APPVEYOR") != "") : 
  No download method works (auto/wininet/wget/curl/lynx)
In addition: Warning messages:
1: In download.file(url, output, ..., method = method) :
  URL 'https://yihui.name/gh/tinytex/tools/pkgs-custom.txt': status was 'Couldn't connect to server'
2: In download.file(url, output, ..., method = method) :
  InternetOpenUrl failed: 'A connection with the server could not be established'
3: In download.file(url, output, ..., method = method) :
  InternetOpenUrl failed: 'A connection with the server could not be established'
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.

会话信息报告如下:

xfun::session_info('tinytex')
R version 3.4.3 (2017-11-30)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 16299), RStudio 1.2.1335
Locale:
  LC_COLLATE=Russian_Russia.1251  LC_CTYPE=Russian_Russia.1251    LC_MONETARY=Russian_Russia.1251 LC_NUMERIC=C                   
  LC_TIME=Russian_Russia.1251    
Package version:
  tinytex_0.12.4 tools_3.4.3    xfun_0.6 

因此,我有这两个问题:

1) 我可以不通过网站 yihui.name/tinytex 安装 tinytex 吗?

2)或者,是否可以在安装 tinytex 期间告诉 Rstudio Desktop 使用 VPN 连接到 yihui.name/tinytex ?

谢谢。

4

0 回答 0