Description Usage Arguments Value Examples
Render a TextType node int HTML or some other format
1 2 | get_TextType(node, to = "html", output = tempfile(class(node), fileext
= paste0(".", to)), view = TRUE)
|
node |
any TextType node |
to |
desired format, default is html, but can be any type supported by pandoc (docx, md, etc) |
output |
name of the desired output file |
view |
if HTML, do we want to open result in browser? |
creates a file requested.
1 2 3 4 5 6 7 8 9 10 11 12 | ## Convert an EML abstract to markdown
f <- system.file("examples/hf205.xml", package = "EML")
eml <- read_eml(f)
abstract <- eml_get(eml, "abstract")
get_TextType(abstract[[1]], "markdown", "abstract.markdown")
readLines("abstract.markdown")
unlink("abstract.markdown") # tidy up
## Turn a docx file into EML abstract and preview at HTML
f <- system.file("examples/hf205-abstract.docx", package = "EML")
a <- as(set_TextType(f), "abstract")
get_TextType(a)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.