Windows 10 - tinytex :: install_tinitex () не работает - PullRequest
0 голосов
/ 23 ноября 2018

Я попытался установить TinyTeX на Windows10 безуспешно.

Я не думаю, что это проблема с прокси, так как установлены обычные пакеты.Я установил 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’

Спасибо,

Николас

...