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

Labeling R code chunks prevents blogdown from linking pictures correctly #85

Closed
harlecin opened this issue Apr 9, 2017 · 3 comments
Closed
Milestone

Comments

@harlecin
Copy link

harlecin commented Apr 9, 2017

Inserting a picture in a chunk like this works fine:

```{r}
plot(iris)

But if I label the code chunk, the figure is not linked correctly, i.e. the html page shows the missing-image-icon:

```{r not working}
plot(iris)

Putting quotes around the label does not work for me either:

```{r 'not working'}
plot(iris)

Thx a lot btw, for this awesome package:)

@yihui
Copy link
Member

yihui commented Apr 11, 2017

Please see the last paragraph on this page: https://bookdown.org/yihui/blogdown/output-format.html (Yeah I know it is kind of surprising and hard to find)

@harlecin
Copy link
Author

Thx a lot!

@yihui yihui added this to the v0.1 milestone Apr 17, 2017
yihui added a commit to yihui/servr that referenced this issue Apr 17, 2017
yihui added a commit that referenced this issue Apr 17, 2017
@yihui
Copy link
Member

yihui commented Apr 17, 2017

FYI, if you reinstall the devel version of blogdown here, this issue should be gone, but I still recommend you not to use spaces in chunk labels.

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