Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

include_graphics function not functioning #16

Open
ThomasPepperz opened this issue Feb 24, 2019 · 1 comment
Open

include_graphics function not functioning #16

ThomasPepperz opened this issue Feb 24, 2019 · 1 comment

Comments

@ThomasPepperz
Copy link

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
Copy link

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")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants