include_graphics function not functioning
Opened this issue · 1 comments
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"
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")