R knitr error 41 when producing pdf (windows) -
i have been trying make simple pdf using "knit pdf" functionality rstudio.
every time try convert sample doc pdf following message:
|............. | 20%
ordinary text without r code
|.......................... | 40%
label: unnamed-chunk-1
|....................................... | 60%
ordinary text without r code
|.................................................... | 80%
label: unnamed-chunk-2 (with options)
list of 1
$ echo: logi false
|.................................................................| 100%
ordinary text without r code
"path1" +rts -k512m -rts econ_404_hw_4.utf8.md --to latex --from markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash --output doctitle.pdf --template "path2" --highlight-style tango --latex-engine pdflatex --variable graphics=yes --variable "geometry:margin=1in" output file: doctitle.knit.md
pandoc.exe: pdflatex not found. pdflatex needed pdf output.
error: pandoc document conversion failed error 41
in addition: warning message:
running command '"path1" +rts -k512m -rts doctitle.utf8.md --to latex --from markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash --output doctitle.pdf --template "path2" --highlight-style tango --latex-engine pdflatex --variable graphics=yes --variable "geometry:margin=1in"' had status 41
execution halted
no tex installation detected (tex required create pdf output). should install recommended tex distribution platform:
windows: miktex (complete) - http://miktex.org/2.9/setup (note: sure download complete rather basic installation)
mac os x: texlive 2013 (full) - http://tug.org/mactex/ (note: download safari rather chrome strongly recommended)
linux: use system package manager
i edited out path locations on pc intended title of pdf (changing them "path1", "path2", , "doctitle" appropriate.)
i have used link download miktex multiple times multiple locations, have tried using protex others have had success doing. have tried adding bin of miktex environment no matter what, seems r unable find tex. of advice available osx, , have tried adapting solutions windows no avail.
@matty r, after getting error restarted rstudio, , asked me instally packages "upquote" using miktex package manager, after 3 or 4 packages installation got pdf file created.
Comments
Post a Comment