Skip to content

enhancement request: pass list to set_values #189

@j-magnolia

Description

@j-magnolia

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featurea feature request or enhancementform 🧾

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions