validate_checksum_v1.4.2 {biocompute} | R Documentation |
BioCompute Objects checksum validator (v1.4.2)
Description
BioCompute Objects checksum validator (v1.4.2)
Usage
validate_checksum_v1.4.2(file)
validate_checksum(file)
Arguments
file |
Path to the BCO JSON file |
Value
Logical. TRUE
if the checksum matched, FALSE
if not.
Note
An SHA-256 checksum is calculated and stored in the top level fields when a BioCompute Object is created. In reality, due to the delicate differences in how the data in JSON is represented, parsed, and handled in different languages, there could be false positives in the validation results.
Examples
bco <- tempfile(fileext = ".json")
generate_example("HCV1a") %>%
convert_json() %>%
export_json(bco)
bco %>% validate_checksum()
[Package biocompute version 1.1.1 Index]