2

我正在使用 R、RStudio,但对 r-markdown 不熟悉,并希望以 pdf/latex 格式生成文档。安装完整版的 MiKTeX 让我有点反感,并且通过TinyTeX阅读了 Yihui Xie 提出的解决方案并认为这正是(喜欢的人)我的解决方案。不幸的是,我未能安装该软件包并且不明白我做错了什么。我仔细阅读了有关“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  
4

0 回答 0