You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For editing, and then later for production, I need to keep track of where the source code is for each figure generated in the scripts under R/. I've just started adding some of these, in the form of comments:
Is there some way to add a knitr option, fig.code =, or Quarto option fig-code: with, a chunk-hook that for now does nothing, but could be modified later to do something useful, like adding the filename to the figure caption?
Activity
friendly commentedon Oct 27, 2024
I realized I can do something like this using a div to show the filename in the margin (for the HTML version), e.g.,
But to be truly useful, I'd like to be able to turn this off globally. Is there any way to do this?
friendly commentedon Aug 9, 2025
Raised this as a question on SO: https://stackoverflow.com/questions/79730877/knitr-quarto-define-a-new-figure-option-for-name-of-source-file