seplyr is a thin rlang wrapper around dplyr. So it gives you the ability to control variable names via rlang without the user having to get involved with rlang. It uses the version of dplyr you have, so should work the latest version.
Your wrapr::let() example is good. We are now teaching a convention that you have the replacement target and value differ only by capitalization.
parametrized_plot <- function(xvariable, yvariable, ..){
wrapr::let(
list(XVARIABLE = xvariable, YVARIABLE = yvariable),
{
title = paste(yvariable, "vs", xvariable)
plot(XVARIABLE, XVARIABLE, main=title)
}
)
}
set.seed(1234)
xvar = runif(100) - 0.5
yvar = dnorm(xvar)
xvariable <- "xvar"
yvariable <- "yvar"
parametrized_plot(xvariable, yvariable)
This is very readable and you have both the value carrying version (the lower case) and the replacement target (the upper case) available in your code. So you can use any mix of standard (value consuming) and non-standard (name capturing) interfaces with no trouble.
Our thinking is: if you don't want to get involved with replacement details: use seplyr. If you do want to get involved with replacement details: use wrapr::let().
Thank on the vignettes comment. They are indeed rmarkdown::html_vignette.