To install the package, use install_github() from the remotes package or pkg_install() from the pak package:
pak::pkg_install('yea-hung/readmarkdown')Define the Markdown table:
markdown_table<-"
| state | capital | area |
| --- | --- | --- |
| California | Sacramento | 163700 |
| Massachusetts | Boston | 10565 |
| Illinois | Springfield | 57914 |
"Read the table:
read_markdown(markdown_table)Equivalently, read the table using using native piping:
markdown_table |> read_markdown()This package uses base R.