README.md

simpleSetup

Simple Functions for Setting Up An R Source Code File For Use on Multiple Machines

CRAN Version Build Status

When working across multiple machines and, similarly for reproducible research, it can be time consuming to ensure that you have all of the needed packages installed and loaded and that the correct working directory is set. simpleSetup provides simple functions for making these tasks more straightforward.

Currently it has two functions:

Setup example

library(simpleSetup)

# Load packages, install if needed
packages <- c('networkD3', 'coreSim')
library_install(packages)

# Set valid working directory
possible_wd <- c('/examples/directory1', '/anotherExample/directory2')
set_valid_wd(possible_wd)

The hitch is that users will have to install the setupPkg, but this is one quick installation, as the package has no dependencies.

Comparision to other packages

Also checkout pacman, which has many more features for dealing with packages. While they cover some of the same ground, simpleSetup is aimed at simplicity, it is a very small install and has no dependencies.



christophergandrud/simpleSetup documentation built on May 13, 2019, 7:03 p.m.