Convert OSD plaintext to JSON using NSSH structural elements

osd_to_json(
  logfile = file.path(output_dir, "OSD/OSD.log"),
  input_dir = "OSD",
  pattern = "txt",
  output_dir = "inst/extdata",
  osd_files = NULL
)

Arguments

logfile

Path to log file; default: file.path(output_dir, "OSD/OSD.log")

input_dir

Default: 'OSD'; files matching pattern are listed recursively

pattern

Argument passed to list.files when osd_files is not specified

output_dir

Default: 'inst/extdata'; folder to create alphabetical folder structure with JSON files

osd_files

Default NULL; Optional over-ride vector of file names for testing

Value

A logical vector equal in length to the number of input files.