我试图在Windows10上安装TinyTeX,但没有成功。
我认为这不是代理问题,因为已安装常规软件包。我在这些recommendations之后安装了wget。 Wget使用Powershell,但不能使用cmd。
我正在使用Rstudio 1.1.463和R 3.5.1
这是一台全新的计算机,以前没有安装LaTeX。这很麻烦,因为我是TinyTeX的忠实拥护者,而且在家里的Ubuntu上安装它也没有问题。
我重新启动了Rstudio,命令is_tinytex()返回false。
这是安装命令的输出:
> library(tinytex)
> tinytex::install_tinytex()
trying URL 'http://mirror.ctan.org/systems/texlive/tlnet/install-tl.zip'
trying URL 'http://mirror.ctan.org/systems/texlive/tlnet/install-tl.zip'
Content type 'application/zip' length 24073684 bytes (23.0 MB)
downloaded 23.0 MB
trying URL 'https://github.com/yihui/tinytex/raw/master/tools/pkgs-custom.txt'
Content length 142 bytes
downloaded 312 bytes
trying URL 'https://github.com/yihui/tinytex/raw/master/tools/texlive.profile'
Content length 142 bytes
downloaded 295 bytes
Starting to install TinyTeX to C:\Users\roelandt\AppData\Roaming/TinyTeX. It will take a few minutes.
Automated TeX Live installation using profile: ../texlive.profile
cannot contact mirror.ctan.org, returning a backbone server!
Loading http://www.ctan.org/tex-archive/systems/texlive/tlnet/tlpkg/texlive.tlpdb
C:\Users\roelandt\AppData\Local\Temp\RtmpoXezBr\install-tl-20181123\install-tl: TLPDB::from_file could not download http://www.ctan.org/tex-archive/systems/texlive/tlnet/tlpkg/texlive.tlpdb;
C:\Users\roelandt\AppData\Local\Temp\RtmpoXezBr\install-tl-20181123\install-tl: maybe the repository setting should be changed.
TinyTeX installed to C:\Users\roelandt\AppData\Roaming/TinyTeX
Please restart your R session and IDE (if you are using one, such as RStudio or Emacs) and check if tinytex:::is_tinytex() is TRUE.
Warning messages:
1: In download.file(url, output, ..., method = method) :
URL 'http://mirror.ctan.org/systems/texlive/tlnet/install-tl.zip': status was 'Failure when receiving data from the peer'
2: In file.remove("TinyTeX/install-tl.log") :
cannot remove file 'TinyTeX/install-tl.log', reason 'No such file or directory'
有关会话的信息
> sessionInfo() R version 3.5.1 (2018-07-02) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows >= 8 x64 (build 9200)
Matrix products: default
locale: [1] LC_COLLATE=French_France.1252 LC_CTYPE=French_France.1252 LC_MONETARY=French_France.1252 [4] LC_NUMERIC=C LC_TIME=French_France.1252
attached base packages: [1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached): [1] compiler_3.5.1 tools_3.5.1 yaml_2.2.0 tinytex_0.9 xfun_0.4
> RStudio.Version()$version [1] ‘1.1.463’
谢谢
尼古拉斯