Skip to contents

Detect the file type from its extension and/or content, then dispatch to the appropriate parser.

Usage

mp_read_auto(path)

Arguments

path

Character scalar. Path to the file.

Value

A molpath_parsed object produced by the appropriate parser.

Details

Extension mapping:

Examples

# \donttest{
f <- system.file("extdata", "example.vcf", package = "molpathR")
if (nzchar(f)) {
  result <- mp_read_auto(f)
  print(result)
}
# }