inst/doc/caching.R

## ---- include = FALSE---------------------------------------------------------
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)
options(styler.colored_print.vertical = FALSE)
styler::cache_deactivate()

## ----setup--------------------------------------------------------------------
library(styler)

## ---- eval = FALSE------------------------------------------------------------
#  function() {
#    # a comment
#    x <- 2 # <- change this line
#  }
#  
#  another(call)

Try the styler package in your browser

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

styler documentation built on Aug. 29, 2023, 5:10 p.m.