View source: R/detect_html_lang.R
detect_html_lang | R Documentation |
Takes the output of 'readLines()' and looks for lang attribute value, stopping if no valid value is found. Typically used on the output of 'handle_rmd_path()'.
detect_html_lang(lines = NULL, lang_tags = langs)
lines |
The output of 'readLines()' or 'handle_rmd_path()'. |
lang_tags |
A vector of valid lang subtag values, taken from https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry. Used to confirm whether the lang value is valid. |
The lang attribute value if found. Stops if no value found.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.