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

including graphics in Windows #2

Open
f0nzie opened this issue Apr 17, 2018 · 1 comment
Open

including graphics in Windows #2

f0nzie opened this issue Apr 17, 2018 · 1 comment

Comments

@f0nzie
Copy link

f0nzie commented Apr 17, 2018

Hello,
thank you so much for writing this tutorial. It helped me to understand the Rmarkdown to Latex process.
I found something that may be useful in the ms.Rmd document.

This will not work in Windows:
knitr::include_graphics(path = paste0(normalizePath(getwd()), "/Figs/plot.pdf")),

while this other, will:
knitr::include_graphics(path = file.path(getwd(), "Figs/plot.pdf", fsep = .Platform$file.sep))

knitr::include_graphics(path = file.path(getwd(), "/Figs/plot.pdf", fsep = .Platform$file.sep))

@aminadibi
Copy link

@f0nzie thanks so much for the useful comment!

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