Skip to contents

Resolves implicit usage of default key 'guide' to explicit usage for decorated class. Calls explicit_guide, classified, and make_title.

Usage

# S3 method for class 'decorated'
resolve(x, ..., scripted = FALSE)

Arguments

x

decorated

...

passed to explicit_guide, classified, and make_title

scripted

logical; invokes enscript.decorated if TRUE

Value

decorated

Examples

# generate some decorated data
library(magrittr)
file <- system.file(package = 'yamlet', 'extdata','quinidine.csv')
x <- decorate(file)
x %>% decorations(Age, glyco)
#> - Age
#>  - label: baseline subject age
#>  - guide: year
#> - glyco
#>  - label: alpha-1 acid glycoprotein concentration
#>  - guide: mg/dL

# resolve everything, and show selected decorations
x %>% resolve %>% decorations(Age, glyco)
#> - Age
#>  - label: baseline subject age
#>  - units: year
#>  - title: baseline subject age (year)
#> - glyco
#>  - label: alpha-1 acid glycoprotein concentration
#>  - units: mg/dL
#>  - title: alpha-1 acid glycoprotein concentration (mg/dL)

# resolve selectively, and show selected decorations
x %>% resolve(glyco) %>% decorations(Age, glyco)
#> - Age
#>  - label: baseline subject age
#>  - guide: year
#> - glyco
#>  - label: alpha-1 acid glycoprotein concentration
#>  - units: mg/dL
#>  - title: alpha-1 acid glycoprotein concentration (mg/dL)