Skip to content
Discussion options

You must be logged in to vote

Thanks for your answers @cderv and @mcanouil!

I've moved to a simpler solution which is simply to store the script and image in an external folder and then do something like:

```{r}
#| lightbox:
#|   group: r-graph
#|   description: "[Code](<path to repo>/fig/gallery_01.R)"
knitr::include_graphics("../fig/gallery_01.png")
```

for each plot. It's a bit more manual but I don't want to overengineer this.

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@cderv
Comment options

@etiennebacher
Comment options

Answer selected by cderv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants