EPM_prep_outfile: Map Job Batches to Filenames.

View source: R/epm_all_fx.R

EPM_prep_outfileR Documentation

Map Job Batches to Filenames.

Description

Build Filenames Matching job sub-tasks. Each filename corresponds to a series of records returned by a specific job batch. The associated filename indicates where the corresponding records will be written on the local disc (if requested by the user).

Usage

EPM_prep_outfile(job_list, path, prefix)

Arguments

job_list

data.frame. This is the 'job_list' data.frame included in the 'misc' slot of an 'easyPubMed' object.

path

folder on the local computer where files will be saved. It must be an existing directory.

prefix

string used as common prefix for all files written as part of the same PubMed record download job.

Value

character vector pointing to the target files where Pubmed records will be written.

Author(s)

Damiano Fantini, damiano.fantini@gmail.com

References

https://www.data-pulse.com/dev_site/easypubmed/

Examples

test_df <- data.frame(query_string = c('ANY', 'ANY'), 
                      init_date = c('2020/01/01', '2020/01/10'), 
                      end_date = c('2020/01/11', '2020/01/20'), 
                      diff_days = c(10, 10), 
                      exp_count = 100, 100)
easyPubMed:::EPM_prep_outfile(test_df, path = '.', prefix = 'my_test_job')                   



dami82/easyPubMed documentation built on Jan. 4, 2024, 6:21 a.m.