powered by
Convert .md or .Rmd files into a .R script
md2r( filepattern = "*.[R]*md$", path = ".", savefilename = NA, backup = TRUE, heading = " --------", body = "#" )
the pattern of the file names
the path of the folder which contains the .Rmd or .md files
the destinated file name
logical. whether backup the existent file
the indicator of the headings
the indicator of the body text
a .R script
# NOT RUN { path <- system.file("examples/md", package = "mindr") # md2r(path = path) # }
Run the code above in your browser using DataLab