project_root <- rprojroot::find_root(rprojroot::as_root_criterion(".RProfile"))
fig_dir <- file.path(project_root, "man/figures")

fig_fun <- function(input_png) {
  file.path(fig_dir, input_png)
}
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  out.width = "100%",
  tidy = "styler"
)

enhancedView

R-CMD-check

This package is basically a simple "off the shelf" version of the DT by Yihui. It replaces the default data viewer function View with a Shiny App.

Installation

You can install the most recent version of enhancedView from GitHub with:

install.packages("devtools")
devtools::install_github("Tim-Lukas-H/enhancedView")

Themes

The following shows the available themes using the Starswars data of dplyr.

Cerulean Theme

knitr::include_graphics(fig_fun("cerulean_theme.png"))

Cosmo Theme

knitr::include_graphics(fig_fun("cosmo_theme.png"))

Cyborg Theme

knitr::include_graphics(fig_fun("cyborg_theme.png"))

Darkly Theme

knitr::include_graphics(fig_fun("darkly_theme.png"))

Flatly Theme

knitr::include_graphics(fig_fun("flatly_theme.png"))

Journal Theme

knitr::include_graphics(fig_fun("journal_theme.png"))

Lumen Theme

knitr::include_graphics(fig_fun("lumen_theme.png"))

Paper Theme

knitr::include_graphics(fig_fun("paper_theme.png"))

Readable Theme

knitr::include_graphics(fig_fun("readable_theme.png"))

Sandstone Theme

knitr::include_graphics(fig_fun("sandstone_theme.png"))

Simplex Theme

knitr::include_graphics(fig_fun("simplex_theme.png"))

Slate Theme

knitr::include_graphics(fig_fun("slate_theme.png"))

Spacelab Theme

knitr::include_graphics(fig_fun("spacelab_theme.png"))

Superhero Theme

knitr::include_graphics(fig_fun("superhero_theme.png"))

United Theme

knitr::include_graphics(fig_fun("united_theme.png"))

Yeti Theme

knitr::include_graphics(fig_fun("yeti_theme.png"))


Tim-Lukas-H/enhancedView documentation built on Dec. 18, 2021, 5:09 p.m.