Skip to content

Instantly share code, notes, and snippets.

Phil Chalmers philchalmers

Block or report user

Report or block philchalmers

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@philchalmers
philchalmers / read.mirt.R
Created Jun 16, 2015
Old `read.mirt` function from when `plink` was still on CRAN.
View read.mirt.R
#' Translate mirt parameters for plink package
#'
#' This function exports item parameters from the \code{mirt} package to the
#' \code{plink} package.
#'
#'
#' @aliases read.mirt
#' @param x an object returned from \code{mirt, bfactor}, or \code{multipleGroup}
#' @param as.irt.pars if \code{TRUE}, the parameters will be output as an \code{irt.pars} object
#' @param ... additional arguments to be passed to \code{coef()}
@philchalmers
philchalmers / server.R
Created Sep 15, 2014
SImple Shiny survey that pushes data to a Dropbox folder
View server.R
# 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()
@philchalmers
philchalmers / rforge2git.R
Created Nov 2, 2013
Function to convert an existing R-forge svn repository to git.
View rforge2git.R
#' 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
You can’t perform that action at this time.