Learn R Programming

mindr (version 1.2.1)

mm2r: Convert .mm into a .R script

Description

Convert .mm into a .R script

Usage

mm2r(filepattern = "*.mm$", path = ".", savefile = TRUE, savefilename = NA, 
    backup = TRUE, heading = " --------")

Arguments

filepattern

the pattern of the file names

path

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

savefile

logical. Whether to save the output as a file.

savefilename

the destinated file name

backup

logical. whether backup the existent file

heading

the indicator of the headings

Value

a .R script

Examples

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

Run the code above in your browser using DataLab