R 无法安装TinyTeX软件包

R 无法安装TinyTeX软件包,r,r-markdown,tinytex,R,R Markdown,Tinytex,我正在使用R,RStudio,但对R-markdown还不熟悉,希望生成pdf/latex格式的文档。安装MiKTeX的完整版本时,我受到了一些反驳,读到谢一辉(Yihui Xie)提出的解决方案后,我松了一口气,认为这正是适合(像我这样的人)的解决方案。不幸的是,我未能安装该软件包,不明白我做错了什么。我仔细阅读了TinyTeX vignette上针对“R用户”的说明(我试图通过R Studio进行安装)。非常感谢您的帮助。非常感谢。更多信息如下 我在RStudio中运行的命令: instal

我正在使用R,RStudio,但对R-markdown还不熟悉,希望生成pdf/latex格式的文档。安装MiKTeX的完整版本时,我受到了一些反驳,读到谢一辉(Yihui Xie)提出的解决方案后,我松了一口气,认为这正是适合(像我这样的人)的解决方案。不幸的是,我未能安装该软件包,不明白我做错了什么。我仔细阅读了TinyTeX vignette上针对“R用户”的说明(我试图通过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进行测试时:::我得到了吗


注意,当我们说tinytex(小写)时,我们指的是R包。TinyTeX表示LaTeX发行版
您是否安装了
TinyTeX
TinyTeX
?您可能还需要安装
wget
并设置正确的路径@Tung:谢谢您的wget。我不知道这件事。我将安装并设置路径。我再次尝试安装。我想安装tinytex,R软件包。我知道它将安装MiKTex要求的所有软件包。更新:我安装了
wget
ans,并相应地设置
路径。这有助于我进一步进行安装。不幸的是,我仍然无法编译:tinytex::pdflatex('test.tex')错误:未能编译test.tex。
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