Skip to content

Document assignment of selections to variables and printing of result #3

@bschneidr

Description

@bschneidr

One efficient way of using the package is to assign selections to a variable for repeated use in a document. For example, if you're writing about the experimental evaluation of a pilot program, you'd often switch between the text "the pilot group" and "the control group." Rather than repeatedly writing a call to sel_inline_text(), you should be able to make this assignment:

name_selection <- sel_inline_text(sel_id = "group_selection", 
                                  options = c("Pilot" = "the pilot group",
                                              "Control" = "the control group"))

and repeatedly refer to name_selection in your rmarkdown.

This ought to be tested and documented in the main package documentation.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions