Skip to content

Instantly share code, notes, and snippets.

View hadley's full-sized avatar

Hadley Wickham hadley

View GitHub Profile
library(tidyverse)
library(lubridate)
url1 <- "https://cran.rstudio.com/src/contrib/Meta/archive.rds"
url2 <- "https://cran.rstudio.com/src/contrib/Meta/current.rds"
if (!file.exists(basename(url1))) download.file(url1, basename(url1), quiet = TRUE)
if (!file.exists(basename(url2))) download.file(url2, basename(url2), quiet = TRUE)
archive <- readRDS("archive.rds")
@hadley
hadley / stuff.md
Created August 14, 2017 20:40
gist gist gist

Stuff and things

head of mtcars

head(mtcars)
@hadley
hadley / stuff.md
Created August 14, 2017 20:40
gist gist gist

Stuff and things

head of mtcars

head(mtcars)
@hadley
hadley / stuff.md
Created August 8, 2017 23:27
gist gist gist

Stuff and things

head of mtcars

head(mtcars)
@hadley
hadley / stuff.md
Created August 8, 2017 23:27
gist gist gist

Stuff and things

head of mtcars

head(mtcars)
@hadley
hadley / stuff.md
Created August 7, 2017 21:56
gist gist gist

Stuff and things

head of mtcars

head(mtcars)
@hadley
hadley / stuff.md
Created August 7, 2017 21:56
gist gist gist

Stuff and things

head of mtcars

head(mtcars)
@hadley
hadley / stuff.md
Created August 4, 2017 13:09
gist gist gist

Stuff and things

head of mtcars

head(mtcars)
@hadley
hadley / stuff.md
Created August 4, 2017 13:08
gist gist gist

Stuff and things

head of mtcars

head(mtcars)
@hadley
hadley / shiny-oauth.r
Last active April 26, 2024 05:41
Sketch of shiny + oauth
library(shiny)
library(httr)
# OAuth setup --------------------------------------------------------
# Most OAuth applications require that you redirect to a fixed and known
# set of URLs. Many only allow you to redirect to a single URL: if this
# is the case for, you'll need to create an app for testing with a localhost
# url, and an app for your deployed app.