lvar | R Documentation |
Returns the value of a user-defined variable
lvar(v)
v |
a required parameter, the variable name |
the variable value, or NULL
if the variable is not defined, or
if it is a special variable (e.g. sig
or alias
)
The lvar()
function only applies to user-defined variables such as ${stage}
.
Special variables (e.g. sig, annots
, etc) will currently return NULL
here.
> lvar("sig") NULL
This doesn't mean they are not defined. Whilst not a bug exactly, this "feature" is not particularly convenient; future releases of lunaR will be fixed to return the actual values of all variables.
## Not run:
> lvar("stage")
[1] "N2"
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.