svmiller / svm-r-markdown-templates

This is my (deprecated) suite of R Markdown templates for academic manuscripts, beamer presentations, and syllabi. DOWNLOAD {stevetemplates} INSTEAD.
http://svmiller.com/stevetemplates/
Other
896 stars 737 forks source link

include_graphics function not functioning #16

Open ThomasPepperz opened 5 years ago

ThomasPepperz commented 5 years ago

The include_graphics function does not seem to play nicely. I noticed the commit message "add support for include_graphics, maybe?"

Code:

knitr::include_graphics("~/Sentencing/Graphics/CookCounty_Race_ACS.png")

Error message:

"/Applications/RStudio.app/Contents/MacOS/pandoc/pandoc +RTS -K512m -RTS test.utf8.md --to latex --from markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash --output test.tex --template /Users/thomasapepperz/Sentencing/svm.latex.ms.tex --highlight-style tango --latex-engine pdflatex --natbib output file: test.knit.md

! LaTeX Error: File `\nobreakspace {}/Sentencing/Graphics/CookCounty_Race_ACS' not found.

Error: Failed to compile test.tex. See test.log for more info. Execution halted"

tallguyjenks commented 5 years ago

using the knitr function for graphics I have gotten it to work with double back slashes like such:

knitr::include_graphics("~\\Sentencing\\Graphics\\CookCounty_Race_ACS.png")