Skip to content

Instantly share code, notes, and snippets.

View hypebright's full-sized avatar

Veerle van Leemput hypebright

View GitHub Profile
@hypebright
hypebright / shiny_callR_demo.R
Last active January 23, 2024 11:15
Small demo to use background processes in Shiny apps with callR
library(shiny)
library(callr)
ui <- fluidPage(
titlePanel('Using callR in Shiny'),
actionButton('start_job', 'Start Expensive Job'),
tableOutput('result_table')
)
@hypebright
hypebright / csv_reading_times.R
Last active July 11, 2022 04:36
Microbenchmark to compare reading times for a .csv file in R
library(microbenchmark)
library(data.table)
library(readr)
library(vroom)
library(iotools)
myfile <- 'mypath.csv'
microbenchmark(read.csv(myfile),
data.table::fread(myfile),