Learn R Programming

archivist (version 1.5)

ahistory: Show Artifact's History

Description

ahistory extracts artifact's history and creates a data frame with history of calls and md5hashes of partial results. The overloaded print.ahistory function prints this history in a concise way.

Usage

ahistory(obj = NULL, md5hash = NULL, repoDir = NULL)

## S3 method for class 'ahistory': print(x, ...)

Arguments

obj
An object for which history should be derived. Will be converted into md5hash.
md5hash
If obj is not specified then md5hash is used.
repoDir
A character denoting an existing directory in which an artifact will be saved. If set to NULL (by default), uses the repoDir specified in setLocalRepo.
x
A character vector of tags.
...
A character vector of tags.

Value

  • This function returns data frame with two columns - names of calls and md5hashes of partial results.

Details

All artifacts created with operatordetailed information about it's source (both call and md5hash of the input). The function ahistory reads all artifacts that precede obj and create a description of the input flow. The generic print.ahistory function plots the history in a human readable way.

See Also

Other archivist: Repository; Tags; %a%; addTagsRepo; archivist-package; aread; asearch; cache; copyGithubRepo, copyLocalRepo; createEmptyRepo; deleteRepo; getTagsGithub, getTagsLocal; loadFromGithubRepo, loadFromLocalRepo; md5hash; multiSearchInGithubRepo, multiSearchInLocalRepo, searchInGithubRepo, searchInLocalRepo; rmFromRepo; saveSetToRepo; saveToRepo; setGithubRepo, setLocalRepo; shinySearchInLocalRepo; showGithubRepo, showLocalRepo; summaryGithubRepo, summaryLocalRepo; zipGithubRepo, zipLocalRepo

Other archivist: Repository; Tags; %a%; addTagsRepo; archivist-package; aread; asearch; cache; copyGithubRepo, copyLocalRepo; createEmptyRepo; deleteRepo; getTagsGithub, getTagsLocal; loadFromGithubRepo, loadFromLocalRepo; md5hash; multiSearchInGithubRepo, multiSearchInLocalRepo, searchInGithubRepo, searchInLocalRepo; rmFromRepo; saveSetToRepo; saveToRepo; setGithubRepo, setLocalRepo; shinySearchInLocalRepo; showGithubRepo, showLocalRepo; summaryGithubRepo, summaryLocalRepo; zipGithubRepo, zipLocalRepo

Examples

Run this code
library(dplyr)
iris %a%
  filter(Sepal.Length < 6) %a%
  lm(Petal.Length~Species, data=.) %a%
  summary() -> obj
# read the object history
 asearch(obj)

Run the code above in your browser using DataLab