Learn R Programming

⚠️There's a newer version (2.1.2) of this package.Take me there.

reproducible

A set of tools for R that enhance reproducibility beyond package management. Built on top of git2r and archivist, this package aims at making high-level, robust, machine and OS independent tools for making deeply reproducible and reusable content in R. This extends beyond the package management utilites of packrat and checkpoint by including tools for caching and accessing GitHub repositories.

Installation

Current stable release

Install from CRAN:

install.packages("reproducible")

Install from GitHub:

#install.packages("devtools")
library("devtools")
install_github("PredictiveEcology/reproducible", dependencies = TRUE) # stable

Development version (unstable)

Install from GitHub:

#install.packages("devtools")
library("devtools")
install_github("PredictiveEcology/reproducible", ref = "development", dependencies = TRUE) # unstable

Copy Link

Version

Install

install.packages('reproducible')

Monthly Downloads

2,317

Version

0.2.0

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Eliot J B

Last Published

June 17th, 2018

Functions in reproducible (0.2.0)

.checkGitConfig

Check global git config file
.sortDotsUnderscoreFirst

Sort or order any named object with dotted names and underscores first
compareNA

NA-aware comparison of two vectors
pipe2

Pipe that is Cache-aware, being deprecated
checkPath

Check filepath
Cache

Cache method that accommodates environments, S4 methods, Rasters, & nested caching
Require

Repeatability-safe install and load packages, optionally with specific versions
guessAtTarget

Try to pick a file to load
.prepareOutput

Make any modifications to object recovered from cacheRepo
mergeCache

Merge two cache repositories together
objSize

Recursive object.size
determineFilename

Determine filename, either automatically or manually
checkGDALVersion

Check whether the system has a minimum version of GDAL available
fixErrors.SpatialPolygons

Fix rgeos::gIsValid failures in SpatialPolygons
.cacheMessage

Create a custom cache message by class
checkoutVersion

Clone, fetch, and checkout from GitHub.com repositories
Path-class

Coerce a character string to a class "Path"
.checkForAuxiliaryFiles

Check a neededFile for commonly needed auxiliary files
.checkCacheRepo

Check for cache repository info in ...
.purge

Purge individual line items from checksums file
copyFile

Copy a file using robocopy on Windows and rsync on Linux/macOS
searchFull

Search up the full scope for functions
.digest

Calculate the hashes of multiple files
.addTagsToOutput

Add tags to object
downloadFile

A wrapper around a set of downloading functions
extractFromArchive

Extract files from archive
pkgDep

Determine package dependencies, first looking at local filesystem
.getTargetCRS

Hierarchically get crs from Raster*, Spatial*
.installPackages

Internal function to install packages
clearStubArtifacts

Clear erroneous archivist artifacts
.robustDigest

Create reproducible digests of objects in R
available.packagesMem

Memoised version of available.packages
fastMask

Faster operations on rasters
dlGeneric

Download file from generic source url
.tagsByClass

Add extra tags to an archive based on class
cache

Deprecated functions
.objSizeInclEnviros

Determine object size of all objects inside environments
.preDigestByClass

Any miscellaneous things to do before .robustDigest and after FUN call
getFunctionName

A set of helpers for Cache
getGDALVersion

Check the GDAL version in use
package_dependenciesMem

Memoised version of package_dependencies
projectInputs

Project Raster* or Spatial* or sf objects
.debugCache

Attach debug info to return for Cache
newLibPaths

A shortcut to create a .libPaths() with only 2 folders
fixErrors

Do some minor error fixing
Checksums

Calculate checksum
Copy

Recursive copying of nested environments, and other "hard to copy" objects
installVersions

Install exact package versions from a package version text file & GitHub
cropInputs

Crop a Spatial* or Raster* object
maskInputs

Mask module inputs
normPath

Normalize filepath
reproducible-package

The reproducible package
installedVersions

Determine versions all installed packages
readLinesRcppInternal

Alternative to readLines that is faster
preProcess

Download, Checksum, Extract files
pipe

A cache-aware pipe that does not mask with %>%
dlGoogle

Download file from Google Drive
.prefix

Add a prefix or suffix to the basename part of a file path
readLinesRcpp

Alternative to readLines that is faster
pkgSnapshot

Take a snapshot of all the packages and version numbers
postProcess

Generic function to post process objects
.prepareFileBackedRaster

Copy the file-backing of a file-backed Raster* object
prepInputs

Download and optionally post process files
clearCache

Examining and modifying the cache
writeOutputs

Write module inputs on disk