html_nb_to_ipynb: Convert an RMarkdown HTML notebook to an IPython (or Jupyter)...

Description Usage Arguments Value

View source: R/rmd2ipynb.R

Description

Note that you must pass the HTML file with extension .nb.html that is rendered automatically for RMarkdown documents with output with html_notebook output. Passing the RMarkdown document directly will fail.

Usage

1
2
3
4
5
6
html_nb_to_ipynb(
  html_notebook_file,
  ipynb_file = str_replace(html_notebook_file, "\\.nb\\.html$", ".ipynb"),
  verbose = F,
  remove_html_comments = T
)

Arguments

html_notebook_file

path to the RMarkdown HTML document to be converted

ipynb_file

path to the desired output IPython notebook to be generated

Value

the resulting JSON of the IPython notebook, invisibly, as a character vector


jullybobble/rmd2ipynb documentation built on March 11, 2021, 8:55 a.m.