Learn R Programming

madrat (version 3.15.6)

fingerprint: Tool: fingerprint

Description

Function which creates a unique fingerprint for a madrat function based on the code of the function itself, other madrat functions which are called by this function and of all source folders involved in the process. The fingerprint can serve as an indication whether the workflow for the given function has been most likely changed, or not. If all involved source folders and the code of all involved functions remains the same, also the fingerprint will stay the same, otherwise it will change. Hence, it can be to figure out whether a cache file can be used for further calculations, or whether the calculation should be redone.

Usage

fingerprint(name, details = FALSE, graph = NULL, ...)

Value

A fingerprint (hash) of all provided sources, or "fingerprintError"

Arguments

name

Name of the function to be analyzed

details

Boolean indicating whether additional details in form of an attribute with underlying hash information should be added or not

graph

A madrat graph as returned by getMadratGraph. Will be created with getMadratGraph if not provided.

...

Additional arguments for getMadratGraph in case that no graph is provided (otherwise ignored)

Author

Jan Philipp Dietrich, Pascal Sauer

See Also

readSource

Examples

Run this code
madrat:::fingerprint("toolGetMapping", package = "madrat")

Run the code above in your browser using DataLab