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.9

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Eliot J B

Last Published

July 9th, 2019

Functions in reproducible (0.2.9)

CacheDigest

The exact digest function that Cache uses
Checksums

Calculate checksum
.addChangedAttr

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

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

Return the filename or filenames from a Raster* object
assessDataTypeGDAL

Assess the appropriate raster layer data type for GDAL
Path-class

Coerce a character string to a class "Path"
available.packagesMem

Memoised version of available.packages
.checkCacheRepo

Check for cache repository info in ...
.checkForAuxiliaryFiles

Check a neededFile for commonly needed auxiliary files
cloudDownloadChecksumsOld

Cloud extras
checkAndMakeCloudFolderID

Check for presence of checkFolderID (for Cache(useCloud))
.cacheMessage

Create a custom cache message by class
cloudDownload

Download from cloud, if necessary
basename2

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

Upload to cloud, if necessary
cloudSyncCacheOld

Sync cloud with local Cache
.digest

Calculate the hashes of multiple files
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
getUserTags

Cache helpers
determineFilename

Determine filename, either automatically or manually
.debugCache

Attach debug info to return for Cache
extractFromArchive

Extract files from archive
dlGeneric

Download file from generic source url
.checkGitConfig

Check global git config file
checkoutVersion

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

A set of helpers for Cache
checkPath

Check directory path
Cache

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

Remove attributes that are highly varying
clearStubArtifacts

Clear erroneous archivist artifacts
getGDALVersion

Check the GDAL version in use
newLibPaths

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

Do some minor error fixing
cropInputs

Crop a Spatial* or Raster* object
cloudUploadFromCache

Upload a file to cloud directly from local cacheRepo
normPath

Normalize filepath
cloudWriteOld

Basic tool for using cloud-based caching
postProcess

Generic function to post process objects
.getTargetCRS

Hierarchically get crs from Raster*, Spatial*
reproducibleOptions

reproducible options
reproducible-package

The reproducible package
makeMemoisable

Generic method to make or unmake objects memoisable
fastMask

Faster operations on rasters
.listFilesInArchive

List files in either a zip or tar
unrarPath

The known path for unrar or 7z
downloadFile

A wrapper around a set of downloading functions
linkOrCopy

Hardlink, symlink, or copy a file
installedVersions

Determine versions all installed packages
.prepareFileBackedRaster

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

Memoised version of package_dependencies
pipe

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

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

Purge individual line items from checksums file
projectInputs

Project Raster* or Spatial* or sf objects
pkgDep

Determine package dependencies, first looking at local filesystem
dlGoogle

Download file from Google Drive
.formalsNotInCurrentDots

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

Search up the full scope for functions
.setSubAttrInList

Set subattributes within a list by reference
.prepareOutput

Make any modifications to object recovered from cacheRepo
clearCache

Examining and modifying the cache
writeOutputs

Write module inputs on disk
writeFuture

Write to archivist repository, using future::future
cloudCheckOld

Basic tool for using cloud-based caching
convertPaths

Change the absolute path of a file
.grepSysCalls

Internal function
guessAtTarget

Try to pick a file to load
compareNA

NA-aware comparison of two vectors
maskInputs

Mask module inputs
objSize

Recursive object.size
mergeCache

Merge two cache repositories together
.objSizeInclEnviros

Determine object size of all objects inside environments
.installPackages

Internal function to install packages
installVersions

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

Download, Checksum, Extract files
prepInputs

Download and optionally post process files
.prefix

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

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

Add extra tags to an archive based on class
.preDigestByClass

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

Create reproducible digests of objects in R
testForUnrar

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

A wrapper around try that retries on failure
unrarExists

Tests if unrar or 7zip exist
cloudCache

Deprecated
Copy

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

Assess the appropriate raster layer data type
.addTagsToOutput

Add tags to object