We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Planning to use this issue to add snippets for potential helper functions to consider adding.
The text was updated successfully, but these errors were encountered:
For seeing which options are specified in a given parse record
get_options_present <- function(record) { record$parse() purrr::map(record$values, function(x) { if(inherits(x, "nmrec_option")) { return(x[["name"]]) } else { return(NULL) } }) %>% purrr::compact() %>% purrr::list_c(ptype = "character") }
Update: This is actually really easy with the $get_options() helper, so maybe not needed
$get_options()
get_options_present2 <- function(record) { purrr::map_chr(record$get_options(), ~ .x[["name"]]) }
Sorry, something went wrong.
No branches or pull requests
Planning to use this issue to add snippets for potential helper functions to consider adding.
The text was updated successfully, but these errors were encountered: