This vignette contains a list of actions needed to add a new BDS
number to read_bds()
and write_bds()
.
Suppose we wish to support BDS number 16 (postal code) for reading from and writing to JSON.
inst/schemas
. Set the type of field (“number”, “character”,
“category”, “integer”) and set any restrictions needed on the values or
the range. Keep the version number, and only increment it if a change
alters existing entries. Try to adhere to BDS sequence.convert_raw_df()
, assign the number to the
appropriate type.make_target()
, add the receiving field to the data
template.convert_checked_list_3()
, define the appropriate
code to read the data value from the internal bds
structureas_bds_clientdata_v3()
define the way how to export
the field from to R data objectq <- read_bds(fn)
where
fn
refers to your test file.write_bds(q)
and inspect the result.export_as_bds()
If a new JSON Schema version is needed, then add it to
set_schema()
, increase JSON "Format"
field,
and add it to switch statement in write_bds()
.