R: TinyTex Installation Error: `Error in xfun::download_file(..., quiet = Sys.getenv("APPVEYOR") != "") `

R: TinyTex Installation Error: `Error in xfun::download_file(..., quiet = Sys.getenv("APPVEYOR") != "") `

我尝试使用通常的 tinytex::install_tinytex() 在我的系统中安装 tinytex。但是,它导致了以下错误:

> tinytex::install_tinytex()
trying URL 'https://yihui.org/tinytex/TinyTeX-1.zip'
trying URL 'https://yihui.org/tinytex/TinyTeX-1.zip'
trying URL 'https://yihui.org/tinytex/TinyTeX-1.zip'
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   134    0   134    0     0      7      0 --:--:--  0:00:17 --:--:--    37
curl: (6) Could not resolve host: ci.appveyor.com
Error in xfun::download_file(..., quiet = Sys.getenv("APPVEYOR") != "") : 
  No download method works (auto/wininet/wget/curl/lynx)

我似乎找不到这个问题的根源。有帮助吗?

不确定为什么您的 curl 无法连接到 ci.appveyor.com,但是有其他方法可以安装 TinyTeX,例如,

tinytex::install_tinytex(version = "latest")