Skip to content

Instantly share code, notes, and snippets.

@przytu1
przytu1 / RR.md
Last active January 23, 2017 15:43
RR

RR

Concept

R developers need a tool to reproduce runtime environments for their projects. R ecosystem is evolving really fast - R interpreter, packages, system libraries are subject to frequent updates. Also, different data scientists work in different configurations. This results in problems with reproducibility.

Existing solutions

  • Packrat (only R libraries, private lib for a project)
  • Switchr (only switching between libraries using .libPaths())
@przytu1
przytu1 / withFuture.R
Created May 16, 2017 21:19
Asynchronous Shiny calculations with package Future
# Author: Zygmunt Zawadzki
# http://www.blog.zstat.pl/2017/04/24/make-asynchronous-call-in-shiny./
library(future)
library(shiny)
plan(multiprocess)
ui <- fluidPage(
# Application title
@przytu1
przytu1 / classicShiny.R
Created May 16, 2017 21:22
Classic Shiny app (blocking)
library(shiny)
ui <- fluidPage(
# Application title
titlePanel("Old Faithful Geyser Data"),
# Sidebar with a slider input for number of bins
sidebarLayout(
sidebarPanel(
@przytu1
przytu1 / countdown.js
Created October 4, 2023 09:01
Google Slides countdown
// ==UserScript==
// @name Slides Countdown
// @namespace http://tampermonkey.net/
// @version 0.1
// @author Appsilon
// @match *://docs.google.com/presentation/*
// @grant none
// ==/UserScript==
(function() {
'use strict';