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

2,317

Version

0.2.8

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Eliot J B

Last Published

March 18th, 2019

Functions in reproducible (0.2.8)

Path-class

Coerce a character string to a class "Path"
checkGDALVersion

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

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

Download file from generic source url
.installPackages

Internal function to install packages
installVersions

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

Download file from Google Drive
.cacheMessage

Create a custom cache message by class
.addChangedAttr

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

Cache helpers
checkoutVersion

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

Clear erroneous archivist artifacts
.checkCacheRepo

Check for cache repository info in ...
.checkGitConfig

Check global git config file
determineFilename

Determine filename, either automatically or manually
.digest

Calculate the hashes of multiple files
fixErrors

Do some minor error fixing
getGDALVersion

Check the GDAL version in use
convertPaths

Change the absolute path of a file
newLibPaths

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

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

Check directory path
getFunctionName

A set of helpers for Cache
normPath

Normalize filepath
cloudCache

Experimental use of googledrive for Caching
cloudWrite

Basic tool for using cloud-based caching
cloudCheck

Basic tool for using cloud-based caching
copySingleFile

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

Determine package dependencies, first looking at local filesystem
pkgSnapshot

Take a snapshot of all the packages and version numbers
compareNA

NA-aware comparison of two vectors
cloudDownloadChecksums

Cloud extras
cropInputs

Crop a Spatial* or Raster* object
cloudSyncCache

Sync cloud with local Cache
.debugCache

Attach debug info to return for Cache
extractFromArchive

Extract files from archive
.formalsNotInCurrentDots

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

A wrapper around a set of downloading functions
postProcess

Generic function to post process objects
fastMask

Faster operations on rasters
installedVersions

Determine versions all installed packages
.getTargetCRS

Hierarchically get crs from Raster*, Spatial*
.tagsByClass

Add extra tags to an archive based on class
testForUnrar

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

List files in either a zip or tar
linkOrCopy

Hardlink, symlink, or copy a file
makeMemoisable

Generic method to make or unmake objects memoisable
objSize

Recursive object.size
.objSizeInclEnviros

Determine object size of all objects inside environments
package_dependenciesMem

Memoised version of package_dependencies
.grepSysCalls

Internal function
guessAtTarget

Try to pick a file to load
pipe

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

Project Raster* or Spatial* or sf objects
maskInputs

Mask module inputs
mergeCache

Merge two cache repositories together
.prefix

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

Purge individual line items from checksums file
readLinesRcpp

Alternative to readLines that is faster
prepInputs

Download and optionally post process files
readLinesRcppInternal

Alternative to readLines that is faster
searchFull

Search up the full scope for functions
.robustDigest

Create reproducible digests of objects in R
unrarExists

Tests if unrar or 7zip exist
.preDigestByClass

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

The known path for unrar or 7z
.prepareFileBackedRaster

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

Examining and modifying the cache
.prepareOutput

Make any modifications to object recovered from cacheRepo
writeFuture

Write to archivist repository, using future::future
.setSubAttrInList

Set subattributes within a list by reference
.sortDotsUnderscoreFirst

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

Download, Checksum, Extract files
reproducible-package

The reproducible package
reproducibleOptions

reproducible options
writeOutputs

Write module inputs on disk
CacheDigest

The exact digest function that Cache uses
Checksums

Calculate checksum
.checkForAuxiliaryFiles

Check a neededFile for commonly needed auxiliary files
Require

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

Add tags to object
assessDataType

Assess the appropriate raster layer data type
assessDataTypeGDAL

Assess the appropriate raster layer data type for GDAL
available.packagesMem

Memoised version of available.packages
Copy

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