"I am having problem in generating pdf output . I have downloaded , installed, checked tinytex, which says "TRUE". Tried various options suggested. Even specified path too. But it gave me error saying no pdflatex. I also downloaded latexmk and run it. But still it says no pdf latex. Any suggestions/help please. I am using PC.
install.packages('tinytex')
tinytex::install_tinytex()
Sys.which("pdflatex")
pdflatex
""
Sys.which("xlelatex")
xlelatex
""
?pdflatex
No documentation for ‘pdflatex’ in specified packages and libraries:
you could try ‘??pdflatex’
?latexmk
No documentation for ‘latexmk’ in specified packages and libraries:
you could try ‘??latexmk’
Sys.which("latexmk")
latexmk
"C:\Users\X\DOCUME~1\R\win-library\3.6\latexmk\latexmk.bat"
tinytex::latexmk()
Error in grepl("[.]tex$", file) :
argument "file" is missing, with no default
tinytex::pdflatex()
Error in grepl("[.]tex$", file) :
argument "file" is missing, with no default
tinytex::tlmgr()
tlmgr
[1] 127
tinytex::lualatex()
Error in grepl("[.]tex$", file) :
argument "file" is missing, with no default
tinytex::tlmgr_search()
Error in shQuote(what) : argument "what" is missing, with no default
writeLines(c(
'\\documentclass{article}',
'\\begin{document}', 'Hello world!', '\\end{document}'
), 'test.tex')
tinytex::pdflatex('test.tex')
Error: Failed to compile test.tex. See https://yihui.name/tinytex/r/#debugging
for debugging tips.
Thanks