Skip to content

Instantly share code, notes, and snippets.

View freestatman's full-sized avatar
💭
just typing some R code...

Freeman Wang freestatman

💭
just typing some R code...
View GitHub Profile
@freestatman
freestatman / app_dyn_jinja.R
Last active May 28, 2022 00:39
jinjar template example for writing dynamic shiny sidebar/tabItems
if (TRUE) { # packages
library(jinjar)
library(shiny)
library(tidyverse)
} # End packages
if (TRUE) { # shiny mod functions
mod_nm1_ui <- function(id){
ns <- NS(id)
tagList(
@freestatman
freestatman / server.R
Created March 30, 2018 05:16 — forked from trestletech/server.R
A Shiny app combining the use of dplyr and SQLite. The goal is to demonstrate a full-fledged, database-backed user authorization framework in Shiny.
library(shiny)
library(dplyr)
library(lubridate)
# Load libraries and functions needed to create SQLite databases.
library(RSQLite)
library(RSQLite.extfuns)
saveSQLite <- function(data, name){
path <- dplyr:::db_location(filename=paste0(name, ".sqlite"))
@freestatman
freestatman / Readme.md
Created January 26, 2016 05:04 — forked from timelyportfolio/Readme.md
some examples with rbokeh inspired by ggplot2 and lattice

lattice

examples inspired by this book

ggplot2

examples inspired by this book