osd_to_json: Convert OSD plaintext to JSON using NSSH structural elements

View source: R/create_OSD.R

osd_to_jsonR Documentation

Convert OSD plaintext to JSON using NSSH structural elements

Description

Convert OSD plaintext to JSON using NSSH structural elements

Usage

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.


brownag/SoilKnowledgeBase documentation built on April 5, 2025, 1:32 a.m.