knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)
options(tibble.print_min = 5, tibble.print_max = 5)

demoR

Overview

demoR is a set of tools for formatting R code for presentations, teaching demonstrations, and much more:

These combine naturally within code chunks in R Markdown files via code chunk options. You can learn more about them in vignette("demoR").

Installation

Development version

Currently, only the development version of demoR is available. You can install this by running

# install.packages("devtools")
devtools::install_github("kbodwin/demoR")

Usage

library(demoR)
data(iris)
codestring <- "mean(iris$Sepal.Length, na.rm = TRUE)"

hlt_funs(codestring)

hlt_args(codestring)

demo_code(codestring) %>% hlt_args()

Getting help

If you encounter a clear bug, please file a minimal reproducible example on github.




kbodwin/demoR documentation built on Nov. 10, 2019, 11:30 p.m.