The collection is done by (1) looking for all subdirectories with info.yml file that defines papis record, (2) filtering those records and (3) returning lists of 'path' (root dir of papis record) and 'info' (content of info.yml) for each record
collect_papis_records(dir, filter_info)
A character vector of directories to scan recursevely for papis records.
Exprocion that allows to filter info.yml files that is evaluated in the environment with two variables bound for each record - 'path' (root dir of papis record) and 'info' (content of info.yml). The expression should return TRUE in order for record to be filtered in. Other returned value will filter the record out. Example: 'data' %in% info$tags
will filter only records that have tag 'data' in their info.yml descriptions
list of 'path' (root dir of papis record) and 'info' (content of info.yml) for each record