Read json files associated with trials from paths stored in supplied columns. Expects absolute paths, use update_file_pointers to update them if necessary. Function uses jsonlite::read_json to read files. Corrupted files are ignored, and a list of corrupted files is printed at the end.

read_json_files(data, .cols = ends_with("_json_location_0"), ...)

Arguments

data

A dataframe of trial results

.cols

A tidyselect specification of columns (e.g. c(col1, col2)).

...

Additional arguments passed to read_json. Default are columns that end with _json_location_0