import_search_results.Rd
This is a wrapper around the synthesisr
function read_refs
that
processes the hits in a set of subdirectories in a directory, specifying
the original file, directory, and, if the files were names using a
convention, date, database, and interface (see the search_metadataRegex
argument).
import_search_results(
path,
dirRegex = ".*",
fileRegex = "\\.ris$",
dirsToIgnoreRegex = NULL,
filesToIgnoreRegex = NULL,
recursive = TRUE,
perl = TRUE,
idFieldName = "original_id",
parallel = FALSE,
search_metadataRegex = metabefor::opts$get("search_metadataRegex"),
silent = metabefor::opts$get("silent")
)
The path to the files with the search results.
The regular expression to match subdirectories against.
The regular expression to match filenames against.
A regular expression to specify which directories and files should be ignored.
Whether to recursively read subdirectories.
Whether to use Perl regular expressions
New name to use for the id
field (column), a reserved
name in JabRef (if NULL
, the field is not renamed).
Whether to use multiple cores for parallel processing.
A regular expression to match against the filenames. If it matches, metadata will be extracted in three capturing groups, in the order date (using ISO standard 8601 format, i.e. 2022-03-05), interface, and database.
Whether to be silent or chatty.
An object with all the imported information, including, most
importantly, the data frame bibHitDf
with all results.