write_screenerPackage.Rd
This function prepares a 'screener package': a set of files that one or more screeners can use to independently screen a set of bibliographic records.
A dataframe with bibliographic entries
The path where to write the screener package(s)
The unique identifiers to use for each screener; a character vector where each value represented one screener. This will be used for the directory and filenames as well as fields in the bibliographic database.
The pre- and suffixes to pre- and append to the screener identifier in the field names in the bibliographic database
A field containing information from previous screening stages
The field containing information about duplicates; if specified, information from this field is appended to whatever is already stored in the
Whether to copy the contents of the initialization field to the screener fields.
The base name for the directories and files (appended with the screener identifiers)
Whether to be silent or chatty.
Any additional arguments are passed to write_JabRef_Config()
.
Invisibly, a results object with intermediate results and the written configuration file
### Get the path to a temporary directory
tempPath <- tempdir();
### Load an example bibliography
data("ebsco_example_1", package="metabefor");
### Write screener packages
metabefor::write_screenerPackage(
ebsco_example_1,
tempPath,
screeners = c("A", "B")
);
#> Error in metabefor::write_screenerPackage(ebsco_example_1, tempPath, screeners = c("A", "B")): To write a screener package, the `synthesisr` package is required! You can install it with:
#>
#> install.packages('synthesisr');
### Look at written files
list.files(tempPath);
#> [1] "downlit" "file2173cc18ac2131"
#> [3] "file2173cc338fb2dd" "file2173cc4fa94e83"
#> [5] "file2173cc5a07c154" "file2173cc6cc8e94c"
#> [7] "jabref.xml" "libloc_171_2b363be77582bd8f.rds"
#> [9] "libloc_193_1d358f0e7216cd87.rds" "rxsDir2173cc7502a633"
#> [11] "screen.bat" "viewhtml2173cc5942dbcd"
### Look at contents of "screening_A" directory
list.files(file.path(tempPath, "screening_A"));
#> character(0)