examples/Laura_S.json
and examples/Kevin_S.json
inst/schema/bds_v3.0.json
to point to master branchinst/examples/maria.json
by an older versioninteger
to number
read_bds()
and write_bds()
forwrite_bds()
dplyr::case_match()
by requiring dplyr 1.1.0
bdsreader
packageread_bds()
into 13 stepsvalidate
to read_bds()
can bypass the
jsonvalidate::json_validate()
to speed up data reading. The default is
FALSE
. Use validate = TRUE
to obtain diagnostic information.read_bds()
now writes intermediate JSON file to the working
directory by setting intermediate = TRUE
.read_bds()
according to major version numberverify()
function and its testslintr
write_bds()
that failed to save gestational age for lollypop datawrite_bds()
in subfunctions per major versionread_bds()
to cover three major versionswrite_bds()
so that it conforms to JSON BDS schema V3.0switch()
statementname
and src
are
properly read for V1.0-V3.0 dataparse_valid()
robust against BDS sequence write_bds()
to JSON schema V3.0read_bds()
and write_bds()
dscore(..., key = "gsed2212")
.data$var
syntaxmaria
and examples/maria.json
target
, so now the target data is just a list with elements named "psn"
and "xyz"
. read_bds()
from "tibble with attribute" to an object of class target
. This will provide a complete export of the data when converted into JSON format.jsonlite::FROMjson()
, which errors on alien argument namesFormat
field a required element in schema bds_2.0.json
read_bds(txt)
to read data from a URLminidata
for demo purposesexport_as_bds()
that converts donordata into JSON filesjsonvalidate
outputparse_valid()
that does not work under format 2.0jsonvalidate 1.3.2
set_schema()$schema
to the long file name including pathbds_v2.0.json
as detected by jsonvalidate::json_validate()
jsonvalidate::json_validate()
bds_write()
auto_format
that stores the format in the data file (#2)jamesdemodata
package for testing and demo'sinst/examples
maria1.json
and maria2.json
This is a major update that introduces schema versioning for JAMES. Schema versioning allows input data to be formatted according to one of multiple JSON-schemas.
read_bds()
, write_bds()
and related functions;format
the most prominent user-facing argument. Alternatively, the user can also specify the schema file directly using the schema
argument;bds_v{x.y}.json
;bds_schema_str.json
--> bds_v1.0.json
(format = 1)bds_schema.json
--> bds_v1.1.json
bds_schema_V2.json
-- bds_v2.0.json
(format = 2)inst/json
to inst/schemas
;$id
field in the schema's to their permanent locations.The default is format = 2L
, which is incompatible with early users who code their data with bds_schema_str.json
. To read/write with the older format, call read_bds(..., format = 1L)
or write_bds(..., format = 1L)
. The schema argument is primarily meant for development and testing.
pkgdown
R-CMD-check
docs
folder by gh-pages
branchbds_schema_v1.1.json
as default!! (not all testfile yet work)jamestest
package by jamesdemodata
bds_schema_v1.0.json
(old) and bds_schema_v1.1.json
(new)file
argument to write_bds()
appendLF = FALSE
argument from message
bds_write()
functionbds_schema_v1.1.json
bds_schema_v1.1.json
bdsreader
packagepersondata()
NEWS.md
file to track changes to the packageAdd the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.