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 utilities 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

1,072

Version

0.2.7

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Eliot J B

Last Published

March 7th, 2019

Functions in reproducible (0.2.7)

Copy

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

Assess the appropriate raster layer data type for GDAL
getFunctionName

A set of helpers for Cache
.checkCacheRepo

Check for cache repository info in ...
CacheDigest

The exact digest function that Cache uses
.checkForAuxiliaryFiles

Check a neededFile for commonly needed auxiliary files
.cacheMessage

Create a custom cache message by class
Checksums

Calculate checksum
cloudSyncCache

Sync cloud with local Cache
cloudWrite

Basic tool for using cloud-based caching
clearStubArtifacts

Clear erroneous archivist artifacts
compareNA

NA-aware comparison of two vectors
available.packagesMem

Memoised version of available.packages
cloudCache

Experimental use of googledrive for Caching
linkOrCopy

Hardlink, symlink, or copy a file
convertPaths

Change the absolute path of a file
Require

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

List files in either a zip or tar
.addChangedAttr

Add an attribute to an object indicating which named elements change
pkgSnapshot

Take a snapshot of all the packages and version numbers
.addTagsToOutput

Add tags to object
postProcess

Generic function to post process objects
assessDataType

Assess the appropriate raster layer data type
downloadFile

A wrapper around a set of downloading functions
readLinesRcpp

Alternative to readLines that is faster
.purge

Purge individual line items from checksums file
testForUnrar

Returns unrar path and creates a shortcut as .unrarPath Was not incorporated in previous function so it can be used in the tests
basename2

A version of base::basename that is NULL resistant
unrarExists

Tests if unrar or 7zip exist
extractFromArchive

Extract files from archive
Cache

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

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

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

Crop a Spatial* or Raster* object
getGDALVersion

Check the GDAL version in use
.checkGitConfig

Check global git config file
.grepSysCalls

Internal function
checkPath

Check directory path
mergeCache

Merge two cache repositories together
newLibPaths

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

Make any modifications to object recovered from cacheRepo
fastMask

Faster operations on rasters
.debugCache

Attach debug info to return for Cache
checkoutVersion

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

Project Raster* or Spatial* or sf objects
.sortDotsUnderscoreFirst

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

Basic tool for using cloud-based caching
fixErrors

Do some minor error fixing
determineFilename

Determine filename, either automatically or manually
dlGoogle

Download file from Google Drive
installVersions

Install exact package versions from a package version text file & GitHub
.tagsByClass

Add extra tags to an archive based on class
installedVersions

Determine versions all installed packages
.objSizeInclEnviros

Determine object size of all objects inside environments
cloudDownloadChecksums

Cloud extras
.formalsNotInCurrentDots

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

Memoised version of package_dependencies
.getTargetCRS

Hierarchically get crs from Raster*, Spatial*
.preDigestByClass

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

Search up the full scope for functions
prepInputs

Download and optionally post process files
guessAtTarget

Try to pick a file to load
.setSubAttrInList

Set subattributes within a list by reference
.installPackages

Internal function to install packages
normPath

Normalize filepath
.digest

Calculate the hashes of multiple files
dlGeneric

Download file from generic source url
objSize

Recursive object.size
makeMemoisable

Generic method to make or unmake objects memoisable
.prepareFileBackedRaster

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

Write to archivist repository, using future::future
readLinesRcppInternal

Alternative to readLines that is faster
writeOutputs

Write module inputs on disk
reproducible-package

The reproducible package
maskInputs

Mask module inputs
pipe

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

Determine package dependencies, first looking at local filesystem
preProcess

Download, Checksum, Extract files
unrarPath

The known path for unrar or 7z
clearCache

Examining and modifying the cache
.prefix

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

reproducible options
.robustDigest

Create reproducible digests of objects in R
Path-class

Coerce a character string to a class "Path"