inst/doc/script_generator.R

## ----include = FALSE----------------------------------------------------------
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

library(chevron)
library(dplyr)

## -----------------------------------------------------------------------------
res <- script_funs(aet01, adam_db = "syn_data", args = "args_list")
writeLines(res)

## -----------------------------------------------------------------------------
aet01_custom <- aet01
preprocess(aet01_custom) <- function(adam_db, new_format, ...) {
  reformat(adam_db, new_format)
}

res_funs <- script_funs(aet01_custom, adam_db = "syn_data", args = "args_list")

## -----------------------------------------------------------------------------
writeLines(res_funs)

Try the chevron package in your browser

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

chevron documentation built on June 20, 2025, 5:08 p.m.