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

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

path <- system.file("examples/md", package = "mindr") md2r(path = path)
#> md.R was generated!