Add link to caption for static reports (i.e. docx or pdf).

link_caption(
  txt,
  txt_link = ". Please also see the [online interactive figure]",
  condition_skip = knitr::is_html_output(),
  url_pfx = "https://offshorewindhabitat.info/report"
)

Arguments

txt

text of caption to always include

txt_link

text to additionally include if condition_skip not TRUE

condition_skip

condition of when to skip including extra txt_link

url_pfx

link to prefix the output

Value

text