version_history_iter: Iterator for preston version history starting with oldest...

Description Usage Arguments Value Examples

View source: R/version_history.R

Description

Iterator for preston version history starting with oldest version.

Usage

1
2

Arguments

query_hash

query_hash explicitly specify version to start with

query

a function that takes a query hash and returns a content hash

Value

iterator to access versions, starting with the oldest

Examples

1
2
3
 version_iter <- version_history_iter(resolve_internet_archive)
 first_version <- nextElem(version_iter)
 # "hash://sha256/c253a5311a20c2fc082bf9bac87a1ec5eb6e4e51ff936e7be20c29c8e77dee55"

jhpoelen/reston documentation built on April 11, 2020, 11:51 a.m.