Read log messages from log files to combine with trial results
read_log_messages(data, messages, .colnames)
Data frame of trial results, containing column `res_path`
Vector of string messages to detect
Vector of column names to insert into `data_dir`
# find "killed by magical force" messages in study 2
trials_with_log_messages <-
trials_raw %>%
read_log_messages("ConfrontedThreat 0 You were killed by a magical force",
"killed_by_magical_force" = "...1")
#> Error in trials_raw %>% read_log_messages("ConfrontedThreat 0 You were killed by a magical force", killed_by_magical_force = "...1"): could not find function "%>%"