md_to_Rmd_text: Convert a md to rmd

Description Usage Arguments

View source: R/convert_ipynb_to_blogdown.R

Description

Converts a markdown file containing python code chunks to a Rmd file with a reticulate chunk. Returns the Rmd string without YAML header

Usage

1
2
3
4
5
md_to_Rmd_text(
  md_file,
  chunk_options = "",
  python_path = reticulate::py_config()$python
)

Arguments

md_file

path to the markdown file

chunk_options

string. Passes options to knitr::opts_chunk$set(). Defaults to ""

python_path

python path as string for reticulate. Defaults to the one detected by reticulate::py_config()


corriebar/corrieaaR documentation built on Feb. 18, 2020, 9:33 a.m.