inst/tinytest/test_coda_plot.R

Sys.setenv(LANGUAGE = "en") # Force locale

# library("shiny")
#
# bronze <- read.csv("bronze.csv")
# parts <- c("Cu", "Sn", "Pb", "Zn", "Au", "Ag", "As", "Sb")
# coda <- nexus::as_composition(bronze, parts = parts)
# x <- reactiveVal(coda)

## Bar plot
# testServer(kinesis:::coda_barplot_server, args = list(x = x), {
#   session$setInputs("select_major" = TRUE, "select_minor" = TRUE, "select_trace" = TRUE)
#   expect_identical(data_bar(), coda)
#
#   session$setInputs("par-col_quali" = "discreterainbow")
#   barplot_coda_default <- plot_bar()
# })

## Histogram
# testServer(kinesis:::coda_hist_server, args = list(x = x), {
#   session$setInputs("select-selected" = "Cu")
#   plot_coda_hist <- plot_hist()
# })

Try the kinesis package in your browser

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

kinesis documentation built on Sept. 9, 2025, 5:37 p.m.