Export BioCompute Object as HTML

export_html(x, file, wrap = FALSE, linewidth = 80, ...)

Arguments

x

BioCompute Object JSON string from convert_json

file

HTML output file path

wrap

Should the long lines be wrapped?

linewidth

Maximum linewidth when wrap is TRUE.

...

Additional parameters for render.

Value

Path to the output file

Examples

# \donttest{ file_html <- tempfile(fileext = ".html") generate_example("HCV1a") %>% convert_json() %>% export_html(file_html)
#> #> #> processing file: export.Rmd
#> | | | 0% | |............ | 17% #> ordinary text without R code #> #> | |....................... | 33% #> label: setup (with options) #> List of 4 #> $ include : logi FALSE #> $ echo : logi FALSE #> $ warning : logi FALSE #> $ fig.align: chr "center" #> #> | |................................... | 50% #> ordinary text without R code #> #> | |............................................... | 67% #> label: wrap-hook #> | |.......................................................... | 83% #> ordinary text without R code #> #> | |......................................................................| 100% #> label: unnamed-chunk-1 #>
#> output file: export.knit.md
#> /usr/local/bin/pandoc +RTS -K512m -RTS export.utf8.md --to html4 --from markdown+autolink_bare_uris+tex_math_single_backslash+smart --output /var/folders/w4/h1qfny1d0bq5qx4r80pq1xnm0000gn/T//RtmpgnJVFD/filed786614d8518.html --email-obfuscation none --self-contained --standalone --section-divs --template /Library/Frameworks/R.framework/Versions/3.6/Resources/library/rmarkdown/rmd/h/default.html --no-highlight --variable highlightjs=1 --variable 'theme:bootstrap' --include-in-header /var/folders/w4/h1qfny1d0bq5qx4r80pq1xnm0000gn/T//RtmpgnJVFD/rmarkdown-strd7864b96430d.html --mathjax --variable 'mathjax-url:https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML' --lua-filter /Library/Frameworks/R.framework/Versions/3.6/Resources/library/rmarkdown/rmd/lua/pagebreak.lua --lua-filter /Library/Frameworks/R.framework/Versions/3.6/Resources/library/rmarkdown/rmd/lua/latex-div.lua
#> #> Output created: /var/folders/w4/h1qfny1d0bq5qx4r80pq1xnm0000gn/T//RtmpgnJVFD/filed786614d8518.html
# }