Skip to content

Instantly share code, notes, and snippets.

View philchalmers's full-sized avatar
🏠
Working from home

Phil Chalmers philchalmers

🏠
Working from home
  • York University
  • Toronto, Canada
View GitHub Profile
@philchalmers
philchalmers / rforge2git.R
Created November 2, 2013 17:20
Function to convert an existing R-forge svn repository to git.
#' Convert the trunk of an R-forge SVN repository to git
#'
#' This function to reorganizes an existing svn repository from R-forge to a git repository. One
#' or both of the repository paths can be specified. Assumes that git-svn has been installed, and
#' that git can be called through the command line/terminal. Windows users may have to
#' add the git binary location to their ENVIRONMENTAL VARIABLES.
#'
#' @param svn.repo a string pointing to the R-forge svn repository. Generally of the form
#' \code{svn://svn.r-forge.r-project.org/svnroot/package/} or
#' \code{svn+ssh://developername@@svn.r-forge.r-project.org/svnroot/package/}. This will reorganize
@philchalmers
philchalmers / server.R
Created September 15, 2014 17:45
SImple Shiny survey that pushes data to a Dropbox folder
# devtools::install_github("duncantl/ROAuth")
# devtools::install_github("karthik/rDrop")
library(ROAuth)
library(rDrop)
load('my_dropbox_credentials.rdata') #credentials object from rDrop instructions
shinyServer(function(input, output) {
output$Main <- renderUI({
dynamicUi()