Read log messages from log files to combine with trial results

read_log_messages(data, messages, .colnames)

Arguments

data

Data frame of trial results, containing column `res_path`

messages

Vector of string messages to detect

.colnames

Vector of column names to insert into `data_dir`

Examples

# 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 "%>%"