## ----setup-------------------------------------------------------------------- #| include: false library(livelink) ## ----------------------------------------------------------------------------- #| livelink: true #| autorun: true #| panels: ["editor", "plot"] # Load the data data(mtcars) plot(mtcars$mpg, mtcars$wt) # a comment your reader will actually see ## ----------------------------------------------------------------------------- #| livelink: true #| echo: false #| link.text: "This link works, though you cannot see its code above" mean(mtcars$mpg) # this comment still travels in the link ## ----------------------------------------------------------------------------- #| eval: false # knitr::opts_chunk$set(livelink = TRUE, autorun = TRUE)