export_json: Export BioCompute Object as JSON

View source: R/export-json.R

export_jsonR Documentation

Export BioCompute Object as JSON

Description

Export BioCompute Object as JSON

Usage

export_json(x, file)

Arguments

x

BioCompute Object JSON string from convert_json

file

JSON file path

Value

Path to the output file

Examples

file_json <- tempfile(fileext = ".json")
generate_example("HCV1a") %>%
  convert_json() %>%
  export_json(file_json)
cat(paste(readLines(file_json), collapse = "\n"))

biocompute documentation built on May 3, 2022, 9:08 a.m.