jst_re_import: Re-import files

View source: R/re-import.R

jst_re_importR Documentation

Re-import files

Description

jst_re_import() lets you re-import a file which was exported via jst_import() or jst_import_zip().

Usage

jst_re_import(file, warn = TRUE)

Arguments

file

A path to a .csv file.

warn

Should warnings be emitted, if the type of file cannot be determined?

Details

When attempting to re-import, a heuristic is applied. If the file has column names which match the names from any of the ⁠find_*⁠ functions, the file is read with the corresponding specifications. If no column names are recognized, files are recognized based on the number of columns. Since both references and footnotes have only two columns, the first line is inspected for either "Referenc...|Bilbio...|Endnote..." or "Footnote...". In case there is still no match, the file is read with readr::read_csv() with guess_max = 5000 and a warning is raised.

Value

A tibble, with the columns determined based on heuristics applied to the input file.

See Also

jst_combine_outputs()


jstor documentation built on Aug. 16, 2023, 5:09 p.m.