powered by
Get value of other options
.v(opt_name, name_is_character = NA)
name of the option, can be quoted or not quoted.
whether opt_name is a character, only used internally.
opt_name
When setting one option, the value can be dependent on other option names. The current value of other option can be accessed by v(nm) or v$nm.
v(nm)
v$nm
# NOT RUN { opt = set_opt(a = 1, b = function() .v$a*2) opt$b opt(a = 2); opt$b # }
Run the code above in your browser using DataLab