Description Usage Arguments Value Examples
This function works line-wise to separate the <head> from the <body>,
so using, e.g., readLines(infile)
as the input is suitable. Checks
if length(doc) == 1
and splits on newlines to create the vector.
Excludes the <html> and </html> tags.
1 | decapitate(doc)
|
doc |
An object representation of an html file |
A list with the <head> ($head) and <body> ($body) of doc
1 2 3 4 | ## Not run:
decapitate(html_file)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.