A collection of miscellaneous tools for reproducible research with R.
repmis currently has the following functions:
LoadandCite: a function for installing and loading R packages. The command also creates a BibTeX bibliography file with package citations.
InstallOldPackages: installs specific R package versions.
source_data: loads plain-text formatted data (e.g. CSV, TSV) stored at a URL (both http and https) into R. Note: the command can download data from almost any secure (
https) URL. This includes data in Dropbox Public folders and published Google Docs plain-text formatted data sets (see Google Docs support pages for details).
source_data, and all of the data download commands in repmis find and report SHA-1 hashes for each file it loads. You can use a file's SHA-1 hash to make sure you are downloading the file and version of the file you think you are downloading. Note: if you are using
source_datato download data from GitHub,
source_data's SHA-1 hash is not the same as the Git commit's SHA-1 hash. (Thanks to Hadley Wickham's devtools package for the code to make this possible.)
source_DropboxData: loads plain-text formatted data stored in a Dropbox non-Public folder. See this blog post for more details. Also, if you are looking for full Dropbox control (not just data downloading) from R see Karthik Ram's rDrop package.
source_GitHubData: a function for loading plain-text formatted data into R. This function is equivalent to
source_data. It is depricated and will not be updated from this version onwards.
The package is available for download from CRAN.
You can also download the most recent version using the devtools command
install_github to install repmis in R. Here is the exact code for installing the current version: