as_ast: Convert an object into an 'rmd_ast'.

Description Usage Arguments Value Examples

View source: R/as_ast.R

Description

Currently only supports conversion of rmd_tibble objects back to rmd_ast.

Usage

1
as_ast(x, ...)

Arguments

x

Object to convert

...

Unused, for extensibility.

Value

Returns an rmd_ast object.

Examples

1
2
3
parse_rmd(system.file("hw01.Rmd", package="parsermd")) %>%
  as_tibble() %>%
  as_ast()

parsermd documentation built on May 20, 2021, 5:08 p.m.