inst/shiny-squid/source/utilities/display_rcode.R

# display R code in console format
displayRCode <- function(RCode){
  return(wellPanel(class="highlight-source-r ", HTML(paste0("<h3>R code:</h3>", RCode))))
}

Try the squid package in your browser

Any scripts or data that you put into this service are public.

squid documentation built on Jan. 22, 2022, 1:06 a.m.