Learn R Programming

mindr (version 1.2.3)

md2r: Convert .md or .Rmd files into a .R script

Description

Convert .md or .Rmd files into a .R script

Usage

md2r(
  filepattern = "*.[R]*md$",
  path = ".",
  savefilename = NA,
  backup = TRUE,
  heading = " --------",
  body = "#"
)

Arguments

filepattern

the pattern of the file names

path

the path of the folder which contains the .Rmd or .md files

savefilename

the destinated file name

backup

logical. whether backup the existent file

heading

the indicator of the headings

body

the indicator of the body text

Value

a .R script

Examples

Run this code
# NOT RUN {
path <- system.file("examples/md", package = "mindr")
# md2r(path = path)
# }

Run the code above in your browser using DataLab