yihui / knitr-examples

A collection of knitr examples
488 stars 586 forks source link

include_graphics with chinese path not work #47

Closed earthcli closed 8 years ago

earthcli commented 8 years ago

I am using the function of 'include_graphics' to embed some local image, it works for knitr_1.12.3, and R3.2.3, but when I update my knitr to 1.4 and R3.3, it not works, the problem may due to chinese words in the image path, how can I set the encoding ?

earthcli commented 8 years ago

I see, it was due to absolute path, rather than chinese words. I have sove it by using a relative path.