SBML import {rsbml} | R Documentation

## Read in an SBML file (start here)

### Description

Read an SBML file into R.

### Usage

    rsbml_read(filename, text, dom = TRUE, strict = FALSE, schema = FALSE,
                      consistency = TRUE)

### Arguments

`filename` | the name of the SBML file to parse
`text` | a string of SBML text to parse (instead of file)
`dom` | whether to convert directly to the S4 DOM (`TRUE`, the default) or leave as the internal `SBMLDocument`.
`strict` | whether to report warnings in addition to errors or not (`FALSE`, the default).
`schema` | whether to perform XML schema validation
`consistency` | whether to perform consistency checks; recommended but might cause performance deficiencies.

### Value

a `SBML` object, or a `SBMLDocument` if `dom` is `FALSE`.

### Author(s)

Michael Lawrence

### Examples

      # Read an SBML file
      file <- system.file("sbml", "GlycolysisLayout.xml", package = "rsbml")
      doc <- rsbml_read(file)

      # Read an SBML string
      string <- paste(readLines(file),collapse="\n")
      doc <- rsbml_read(text = string)

[Package rsbml version 2.48.0 Index]