Skip to content

Instantly share code, notes, and snippets.

View jrosen48's full-sized avatar

Joshua Rosenberg jrosen48

View GitHub Profile
library(httr)
library(rjson)
# Go to https://developer.nest.com/clients to register a new Nest client
# Nest OAuth 2.0 endpoints
nest <- oauth_endpoint(
request=NULL,
authorize="https://home.nest.com/login/oauth2?state=login",
access="https://api.home.nest.com/oauth2/access_token"
@jrosen48
jrosen48 / restore_packages.R
Created July 8, 2017 14:36 — forked from arne-cl/restore_packages.R
save/load/install a list of your currently installed R packages
# restore_packages.R
#
# installs each package from the stored list of packages
# source: http://hlplab.wordpress.com/2012/06/01/transferring-installed-packages-between-different-installations-of-r/
load("~/installed_packages.rda")
for (count in 1:length(installedpackages)) {
install.packages(installedpackages[count])
}