Package: parsermd 0.2.0

parsermd: Formal Parser and Related Tools for R Markdown Documents

An implementation of a formal grammar and parser for R Markdown documents using the Boost Spirit X3 library. It also includes a collection of high level functions for working with the resulting abstract syntax tree.

Authors:Colin Rundel [aut, cre]

parsermd_0.2.0.tar.gz
parsermd_0.2.0.zip(r-4.5)parsermd_0.2.0.zip(r-4.4)parsermd_0.2.0.zip(r-4.3)
parsermd_0.2.0.tgz(r-4.4-x86_64)parsermd_0.2.0.tgz(r-4.4-arm64)parsermd_0.2.0.tgz(r-4.3-x86_64)parsermd_0.2.0.tgz(r-4.3-arm64)
parsermd_0.2.0.tar.gz(r-4.5-noble)parsermd_0.2.0.tar.gz(r-4.4-noble)
parsermd_0.2.0.tgz(r-4.4-emscripten)parsermd_0.2.0.tgz(r-4.3-emscripten)
parsermd.pdf |parsermd.html
parsermd/json (API)
NEWS

# Install 'parsermd' in R:
install.packages('parsermd', repos = c('https://rundel.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/rundel/parsermd/issues

Uses libs:
  • c++– GNU Standard C++ Library v3

On CRAN:

50 exports 80 stars 4.14 score 61 dependencies 5 dependents 54 scripts 492 downloads

Last updated 1 months agofrom:d00049e029. Checks:OK: 9. Indexed: yes.

TargetResultDate
Doc / VignettesOKSep 13 2024
R-4.5-win-x86_64OKSep 13 2024
R-4.5-linux-x86_64OKSep 13 2024
R-4.4-win-x86_64OKSep 13 2024
R-4.4-mac-x86_64OKSep 13 2024
R-4.4-mac-aarch64OKSep 13 2024
R-4.3-win-x86_64OKSep 13 2024
R-4.3-mac-x86_64OKSep 13 2024
R-4.3-mac-aarch64OKSep 13 2024

Exports:%>%as_astas_documentas_tibbleby_sectionhas_codehas_labelhas_optionhas_typeparse_qmdparse_qmd_collectionparse_rmdparse_rmd_collectionrenderrmd_astrmd_ast_appendrmd_ast_prependrmd_check_templatermd_chunkrmd_code_blockrmd_fenced_div_closermd_fenced_div_openrmd_get_chunkrmd_get_markdownrmd_get_nodermd_get_optionsrmd_has_chunkrmd_has_markdownrmd_has_nodermd_headingrmd_inline_codermd_markdownrmd_markdown_linermd_node_attrrmd_node_codermd_node_contentrmd_node_enginermd_node_labelrmd_node_lengthrmd_node_optionsrmd_node_sectionsrmd_node_typermd_raw_chunkrmd_selectrmd_set_optionsrmd_shortcodermd_sourcermd_subsetrmd_templatermd_yaml

Dependencies:backportsbase64encBHbitbit64bslibcachemcheckmateclicliprcpp11crayondigestdplyrevaluatefansifastmapfontawesomefsgenericsgluehighrhmshtmltoolsjquerylibjsonliteknitrlaterlifecyclemagrittrmemoisemimepillarpkgconfigprettyunitsprocessxprogresspspurrrquartoR6rappdirsRcppreadrrlangrmarkdownrstudioapisassstringistringrtibbletidyrtidyselecttinytextzdbutf8vctrsvroomwithrxfunyaml

Getting Started

Rendered fromparsermd.Rmdusingknitr::rmarkdownon Sep 13 2024.

Last update: 2024-08-04
Started: 2020-09-07

Rmd Templates

Rendered fromtemplates.Rmdusingknitr::rmarkdownon Sep 13 2024.

Last update: 2024-08-04
Started: 2020-09-07

Readme and manuals

Help Manual

Help pageTopics
Convert an object into an 'rmd_ast'.as_ast
Convert an 'rmd_ast', 'rmd_tibble', or any ast node into text.as_document
Get and set code chunk optionschunk_options rmd_get_options rmd_set_options
Parse a collection of R Markdown or Quarto documentparse_collection parse_qmd_collection parse_rmd_collection
Parse an R Markdown or Quarto documentparse_qmd parse_rmd
Render 'parsermd' objectsrender
Append or preprend nodes to an astrmd_ast_append rmd_ast_prepend
Check an Rmd against a templatermd_check_template
AST node creationrmd_ast rmd_chunk rmd_code_block rmd_create rmd_fenced_div_close rmd_fenced_div_open rmd_heading rmd_inline_code rmd_markdown rmd_markdown_line rmd_raw_chunk rmd_shortcode rmd_yaml
rmd node utility functionsrmd_node rmd_node_attr rmd_node_code rmd_node_content rmd_node_engine rmd_node_label rmd_node_length rmd_node_options rmd_node_type
Find the sections for each rmd object nodermd_node_sections
Select nodes of an Rmd astrmd_select
Rmd selection helper functionsby_section has_code has_label has_option has_type rmd_select_helpers
Source the code chunks of an Rmd documentrmd_source
Subset the nodes of an rmd objectrmd_subset
rmd_subset utility functionsrmd_get_chunk rmd_get_markdown rmd_get_node rmd_has_chunk rmd_has_markdown rmd_has_node rmd_subset_util
Create a template from an 'rmd' object.rmd_template