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 release (on CRAN)

Install from CRAN:

install.packages("reproducible")

Install from GitHub:

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

Development version

Install from GitHub:

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

Copy Link

Version

Install

install.packages('reproducible')

Monthly Downloads

2,317

Version

0.2.5

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Eliot J B

Last Published

November 16th, 2018

Functions in reproducible (0.2.5)

.checkForAuxiliaryFiles

Check a neededFile for commonly needed auxiliary files
fastMask

Faster operations on rasters
determineFilename

Determine filename, either automatically or manually
checkPath

Check directory path
.debugCache

Attach debug info to return for Cache
guessAtTarget

Try to pick a file to load
.checkGitConfig

Check global git config file
.objSizeInclEnviros

Determine object size of all objects inside environments
.grepSysCalls

Internal function
objSize

Recursive object.size
.addTagsToOutput

Add tags to object
checkGDALVersion

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

Do some minor error fixing
.listFilesInArchive

List files in either a zip or tar
makeMemoiseable

Generic method to make or unmake objects memoisable
Cache

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

Create a custom cache message by class
checkoutVersion

Clone, fetch, and checkout from GitHub.com repositories
pipe2

Pipe that is Cache-aware, being deprecated
clearStubArtifacts

Clear erroneous archivist artifacts
dlGoogle

Download file from Google Drive
getFunctionName

A set of helpers for Cache
copySingleFile

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

Determine package dependencies, first looking at local filesystem
linkOrCopy

Hardlink, symlink, or copy a file
.checkCacheRepo

Check for cache repository info in ...
installedVersions

Determine versions all installed packages
.formalsNotInCurrentDots

Identify which formals to a function are not in the current ...
cropInputs

Crop a Spatial* or Raster* object
.digest

Calculate the hashes of multiple files
fixErrors.SpatialPolygons

Fix rgeos::gIsValid failures in SpatialPolygons
preProcess

Download, Checksum, Extract files
dlGeneric

Download file from generic source url
getGDALVersion

Check the GDAL version in use
newLibPaths

A shortcut to create a .libPaths() with only two directories
compareNA

NA-aware comparison of two vectors
downloadFile

A wrapper around a set of downloading functions
.prefix

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

Change the absolute path of a file
extractFromArchive

Extract files from archive
pkgSnapshot

Take a snapshot of all the packages and version numbers
normPath

Normalize filepath
package_dependenciesMem

Memoised version of package_dependencies
pipe

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

Generic function to post process objects
.installPackages

Internal function to install packages
readLinesRcppInternal

Alternative to readLines that is faster
cache

Deprecated functions
.prepareOutput

Make any modifications to object recovered from cacheRepo
reproducible-package

The reproducible package
installVersions

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

Project Raster* or Spatial* or sf objects
.robustDigest

Create reproducible digests of objects in R
.purge

Purge individual line items from checksums file
writeFuture

Write to archivist repository, using future::future
writeOutputs

Write module inputs on disk
readLinesRcpp

Alternative to readLines that is faster
maskInputs

Mask module inputs
mergeCache

Merge two cache repositories together
.getTargetCRS

Hierarchically get crs from Raster*, Spatial*
prepInputs

Download and optionally post process files
.preDigestByClass

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

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

Search up the full scope for functions
.sortDotsUnderscoreFirst

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

Add extra tags to an archive based on class
clearCache

Examining and modifying the cache
assessDataType

Assess the appropriate raster layer data type
.addChangedAttr

Add an attribute to an object indicating which named elements change
Path-class

Coerce a character string to a class "Path"
Require

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

Calculate checksum
assessDataTypeGDAL

Assess the appropriate raster layer data type for GDAL
Copy

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

Helper functions for assessDataType
available.packagesMem

Memoised version of available.packages