无法安装TinyTeX包

时间:2018-05-28 14:53:59

标签: r r-markdown tinytex

我正在使用R,RStudio而不是r-markdown的新手,并希望以pdf / latex生成文档。安装MiKTeX的完整版本让我有点反驳,并且正在阅读谢毅辉和TinyTeX提出的解决方案,并认为这正是(像我这样的人)的解决方案。不幸的是,我没有安装包,也不明白我做错了什么。我仔细阅读了关于“R USER”的TinyTeX插图的说明(我试图通过R Studio安装)。将非常感谢帮助。谢谢。更多信息以下
我在RStudio中运行的命令:

install.packages(c('tinytex', 'rmarkdown'))  
tinytex::install_tinytex(). 

我看到下载操作和一些包但它不完整。我有以下消息:

Starting to install TinyTeX to C:\Users\XXX\Documents\R\R\R->UserLibrairies. It will take a few minutes. 

PATH=C:\Users\XXX~1\AppData\Local\Temp\RtmpyKB2Ys\install-tl-20180525\tlpkg\tlperl\bin;C:\Rtools\bin;C:\Program Files\R\R-3.4.3\bin\x64;C:\Program Files (x86)\Intel\iCLS Client\;C:\ProgramData\Oracle\Java\javapath;C:\Program Files\Intel\iCLS Client\;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Acronis\CommandLineTool\;C:\Program Files (x86)\Common Files\Acronis\FileProtector\;C:\Program Files (x86)\Common Files\Acronis\FileProtector64\;C:\Program Files\Acronis\PyShell\bin\;C:\Program Files (x86)\Common Files\Acronis\SnapAPI\;c:\unknownDDEPath;c:\unknownDDEPath\DDE;C:\blp\DAPI;C:\blp\DAPI\DDE.  
    "C:\Users\XXX~1\AppData\Local\Temp\RtmpyKB2Ys\install-tl-20180525\install-tl" -profile=../texlive.profile
    Automated TeX Live installation using profile: ../texlive.profile
    Loading http://ctan.math.illinois.edu/systems/texlive/tlnet/tlpkg/texlive.tlpdb  
    **'wget' is not recognized as an internal or external command, 
    operable program or batch file.**   
    **'wget' is not recognized as an internal or external command,operable program or batch file.**
    C:\Users\XXX~1\AppData\Local\Temp\RtmpyKB2Ys\install-tl-20180525\install-tl: TLPDB::from_file could not download http://ctan.math.illinois.edu/systems/texlive/tlnet/tlpkg/texlive.tlpdb;
    C:\Users\XXX~1\AppData\Local\Temp\RtmpyKB2Ys\install-tl-20180525\install-tl: maybe the repository setting should be changed.
    TinyTeX installed to C:\Users\XXX\Documents\R\R\R-UserLibrairies  
    Restart your R session and check if tinytex:::is_tinytex() is TRUE.  

当我重新启动并使用>进行测试时tinytex ::: is_tinytex()我得到了

Warning messages:
1: In file.remove("TinyTeX/install-tl.log") :
  cannot remove file 'TinyTeX/install-tl.log', reason 'No such file or directory'   
2: running command '"bin/win32/tlmgr" install latex-bin xetex amscls amsfonts amsmath bibtex booktabs caption dvipdfmx ec etoolbox fancyvrb fontspec framed geometry graphics graphics-def gsftopk hyperref ifluatex ifxetex lm luaotfload makeindex mathspec metafont mfware natbib oberdiek titling tools upquote url xkeyval zapfding' had status 127.   
3: running command '"bin/win32/tlmgr" path add' had status 127     
4: running command '"bin/win32/tlmgr" conf auxtrees add "C:/PROGRA~1/R/R-34~1.3/share/texmf"' had status 127  

version info
R version 3.4.3 (2017-11-30) 
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)
Matrix products: default locale:  
[1] LC_COLLATE=English_United States.1252  
  LC_CTYPE=English_United States.1252   
  LC_MONETARY=English_United States.1252  
  LC_NUMERIC=C  
  LC_TIME=English_United States.1252  
  attached base packages:
[1] stats graphics  grDevices utils     datasets  methods   base    
loaded via a namespace (and not attached): 
[1] compiler_3.4.3 tools_3.4.3  

0 个答案:

没有答案
相关问题