library('ggplot2') library('ISLR') library('MASS') err_plot = function(lstat, medv) { qplot(!!lstat, !!medv) } err_plot(Boston$lstat, Boston$medv)
And this issues the following error:
Error: `expr` must quote a symbol, scalar, or call Call `rlang::last_error()` to see a backtrace
I thought this should be valid code in 'tidyverse' and the expr should 'inline ...' the given vectors. Is the code illegal or is it that qplot was not updated?Thanks!
lstat <- sym(lstat)medv <- sym(medv)qplot(!!lstat, !!medv)
--
