parse_html_doc: Parse documentation html using predefined css selectors.

Description Usage Arguments Value

View source: R/parse.r

Description

Parse documentation html using predefined css selectors.

Usage

1
2
3
parse_html_doc(method_html, css_selectors = c(method = "h1", fields = "h2",
  des_auth_tim = "p", arg_err = "dt", arg_err_desc = "dd", example =
  ".boxhighlight"), method_regex = "rtm\\..*", arg_err_regex = "[0-9]+:")

Arguments

method_html

html object returned by rvest::html()

css_selectors

named vector of fields and css selectors

method_regex

regex to parse the method field

arg_err_regex

regex to distinguish between argument and error fields

Value

the parsed list of values documenting the method


jowalski/rtmapidoc documentation built on May 19, 2019, 9:42 p.m.