Skip to contents

Register a protocol

Usage

gr_register_protocol(name, protocol)

Arguments

name

Registry key.

protocol

A gr_protocol().

Value

The name, invisibly.

Examples

p <- gr_protocol("mine", question = "What did each report conclude?",
                 fields = gr_fields(conclusion = "The report's own conclusion"))
gr_register_protocol("mine", p)
gr_protocols("mine")$question
#> [1] "What did each report conclude?"