/usr/lib/R/site-library/highr/doc/highr-custom.R is in r-cran-highr 0.6-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 | ## ------------------------------------------------------------------------
library(highr)
highr:::cmd_latex
## ------------------------------------------------------------------------
m = highr:::cmd_latex
m[, 1] = sub('\\hl', '\\my', m[, 1], fixed = TRUE)
head(m)
## ------------------------------------------------------------------------
hilight("x = 1+1 # a comment") # default markup
hilight("x = 1+1 # a comment", markup = m) # custom markup
|