I am dealing with automating scraping from a form that has lots of checkboxes that I want to programmatically set.
Right now I'm doing
vals <- list(form = f)
vals[list_of_boxes_to_check] <- 'on'
f <- do.call(set_values, vals)
It would be nice to have a trailing-underscore variant set_values_, like the corresponding functions in dplyr with which I could do
vals <- set_names(rep('on', length(list_of_boxes_to_check)), list_of_boxes_to_check)
f <- set_values_(f, .dots = vals)
If there is not a reason why this would be a bad idea, I can implement it and submit a pull-request.
I am dealing with automating scraping from a form that has lots of checkboxes that I want to programmatically set.
Right now I'm doing
It would be nice to have a trailing-underscore variant
set_values_, like the corresponding functions in dplyr with which I could doIf there is not a reason why this would be a bad idea, I can implement it and submit a pull-request.