-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Hi Emily,
Lovely package. I wanted to use it for an upcoming project, and while I was kicking the tires, I hit this
> filepath <- system.file("", "ex-convo.yml", package = "convo")
> convo <- read_convo(filepath)
> write_pb(convo, c("IND_A", "AMT_B"), filename = "convo-validation.yml", path = tempdir())
Error in if (step_list$column[[1]] == step_list$columns_expr) { :
missing value where TRUE/FALSE needed
7.
get_column_text(step_list = step_list, expanded = expanded)
6.
as_agent_yaml_list(agent = agent, expanded = expanded)
5.
pointblank::yaml_write(., filename = "convo-validation.yml",
path = "/var/folders/bp/l5qt50g13sndlz0x48jqqv300000gn/T//RtmpqDnAMJ")
4.
pointblank::create_agent(read_fn = ~setNames(as.data.frame(matrix(1,
ncol = 2)), c("IND_A", "AMT_B"))) %>% pointblank::col_vals_not_null(matches("^([A-Za-z]_){0}ID"),
step_id = 1) %>% pointblank::col_is_numeric(matches("^([A-Za-z]_){0}ID"),
step_id = 2) %>% pointblank::col_vals_between(matches("^([A-Za-z]_){0}ID"), ... at <text>#1
3.
eval(parse(text = code))
2.
eval(parse(text = code))
1.
write_pb(convo, c("IND_A", "AMT_B"), filename = "convo-validation.yml",
path = tempdir())
Likewise when interrogating:
> pointblank::interrogate(agent)
── Interrogation Started - there are 13 steps ───────────────────────────────────────────────────────────────
Error: Only strings can be converted to symbols
Run `rlang::last_error()` to see where the error occurred.
> rlang::last_error()
<error/rlang_error>
Only strings can be converted to symbols
Backtrace:
1. pointblank::interrogate(agent)
2. pointblank:::check_table_with_assertion(...)
3. pointblank:::interrogate_not_null(agent = agent, idx = idx, table = table)
4. pointblank:::get_column_as_sym_at_idx(agent = agent, idx = idx)
5. rlang::sym(...)
I'd love to find out this was my misunderstanding, thanks!
emilyriederer
Metadata
Metadata
Assignees
Labels
No labels