Skip to content

Instantly share code, notes, and snippets.

View katrinleinweber's full-sized avatar
🏠
WFH-ing, but for GitLab.

Katrin Leinweber katrinleinweber

🏠
WFH-ing, but for GitLab.
View GitHub Profile
library(tidyverse)
library(readr)
workshops <- read_csv('workshops.csv')
svg('workshops.svg')
ggplot(workshops, aes(x=date,y=workshops$count)) + geom_line() + ylab("Cumulative Number of Workshops")
dev.off()
instructors <- read_csv("instructors.csv")
svg('instructors.svg')
@leeper
leeper / checkurls.R
Last active April 30, 2016 06:36
Check URLs in a document
# Check URLs in a document
## This code will extract URLs from a text document using regex,
## then execute an HTTP HEAD request on each and report whether
## the request failed, whether a redirect occurred, etc. It might
## be useful for cleaning up linkrot.
if (!require("httr")) {
install.packages("httr", repos = "http://cran.rstudio.com/")
}