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

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Eliot J B

Last Published

September 11th, 2019

Functions in reproducible (0.2.10)

assessDataType

Assess the appropriate raster layer data type
cloudCache

Deprecated
Checksums

Calculate checksum
CacheDigest

The exact digest function that Cache uses
.addTagsToOutput

Add tags to object
Copy

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

Coerce a character string to a class "Path"
Filenames

Return the filename(s) from a Raster* object
Require

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

Add an attribute to an object indicating which named elements change
.cacheMessage

Create a custom cache message by class
available.packagesMem

Memoised version of available.packages
assessDataTypeGDAL

Assess the appropriate raster layer data type for GDAL
checkAndMakeCloudFolderID

Check for presence of checkFolderID (for Cache(useCloud))
basename2

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

Cache helpers
checkPath

Check directory path
checkoutVersion

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

Clear erroneous archivist artifacts
.checkForAuxiliaryFiles

Check a neededFile for commonly needed auxiliary files
.checkCacheRepo

Check for cache repository info in ...
determineFilename

Determine filename, either automatically or manually
Cache

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

Basic tool for using cloud-based caching
dlGeneric

Download file from generic source url
cloudSyncCacheOld

Sync cloud with local Cache
compareNA

NA-aware comparison of two vectors
cloudDownloadChecksumsOld

Cloud extras
cloudDownload

Download from cloud, if necessary
convertPaths

Change the absolute path of a file
cloudUpload

Upload to cloud, if necessary
.debugCache

Attach debug info to return for Cache
cloudWriteOld

Basic tool for using cloud-based caching
cloudUploadFromCache

Upload a file to cloud directly from local cacheRepo
preProcess

Download, Checksum, Extract files
.removeCacheAtts

Remove attributes that are highly varying
makeMemoisable

Generic method to make or unmake objects memoisable
downloadFile

A wrapper around a set of downloading functions
.preDigestByClass

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

Download and optionally post process files
.formalsNotInCurrentDots

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

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

Download file from Google Drive
normPath

Normalize filepath
.listFilesInArchive

List files in either a .zip or or .tar file
checkGDALVersion

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

Mask module inputs
mergeCache

Merge two cache repositories together
.digest

Calculate the hashes of multiple files
.prepareOutput

Make any modifications to object recovered from cacheRepo
writeFuture

Write to archivist repository, using future::future
pipe

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

A set of helpers for Cache
.getTargetCRS

Hierarchically get crs from Raster*, Spatial*
.installPackages

Internal function to install packages
guessAtTarget

Try to pick a file to load
installVersions

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

Grep system calls
.prefix

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

Examining and modifying the cache
postProcess

Generic function to post process objects
.checkGitConfig

Check global git config file
pkgSnapshot

Take a snapshot of all the packages and version numbers
pkgDep

Determine package dependencies, first looking at local filesystem
copySingleFile

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

Add extra tags to an archive based on class
.prepareFileBackedRaster

Copy the file-backing of a file-backed Raster* object
.pkgEnv

The reproducible package environment
testForUnrar

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

Crop a Spatial* or Raster* object
reproducible-package

The reproducible package
.robustDigest

Create reproducible digests of objects in R
.setSubAttrInList

Set subattributes within a list by reference
fixErrors

Do some minor error fixing
installedVersions

Determine versions all installed packages
getGDALVersion

Check the GDAL version in use
projectInputs

Project Raster* or Spatial* or sf objects
searchFull

Search up the full scope for functions
extractFromArchive

Extract files from archive
fastMask

Faster operations on rasters
package_dependenciesMem

Memoised version of package_dependencies
.purge

Purge individual line items from checksums file
linkOrCopy

Hardlink, symlink, or copy a file
unrarExists

Tests if unrar or 7zip exist
.objSizeInclEnviros

Determine object size of all objects inside environments
unrarPath

The known path for unrar or 7z
writeOutputs

Write module inputs on disk
reproducibleOptions

reproducible options
objSize

Recursive object.size
retry

A wrapper around try that retries on failure
.sortDotsUnderscoreFirst

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