single_result: Access a single artifact.

Description Usage Arguments Value

Description

dispatch_result makes the decision whether to return a wrapped query object for further narrowing of the query, or a single_result object which wraps a single artifact retrieved from a repository::repository.

new_single_result creates a simple wrapper around an artifact. It then dispatches calls to print and exposes additional operations via the dollar operator $.

Usage

1
2
3
4
5
6
dispatch_result(q)

new_single_result(artifact)

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

Arguments

q

a query object.

artifact

retrieved from a repository with repository::read_artifacts

x

an object used to select a method.

...

further arguments passed to or from other methods.

Value

A single_result object or wrapped query q.


lbartnik/ui documentation built on May 21, 2019, 9:38 a.m.