I seem to have discovered strange behavior with the knit Word command in RStudio
It works:
```{r qplot, fig.width = 6, fig.height=6, message=FALSE} library(ggplot2) summary(cars) qplot(speed, dist, data = cars) + geom_smooth() ````
this does not work
```{rq plot, fig.width = 6, fig.height=6, message=FALSE} library(ggplot2) summary(cars) qplot(speed, dist, data = cars) + geom_smooth() ```
returns this message:
pandoc.exe: Could not find image `./test_files/figure-docx/q%20plot.png', skipping...
The problem seems to be related to the name of the part (i.e. qplot vs. q plot ). When there is a space in the fragment name, the chart is not displayed.
This seems to affect the rendering of Word documents. Rendering html works great.
I am using RStudio 0.98.1028 and R3.1.1 for Windows 7.
Has anyone else encountered this behavior?
Update
a space after the chunk name also causes the same behavior:
this does not work
```{r q_plot , fig.width = 6, fig.height=6, message=FALSE} library(ggplot2) summary(cars) qplot(speed, dist, data = cars) + geom_smooth() ```