Learn R Programming

mindr (version 1.2.1)

r2md: Convert .R scripts into a .md/.Rmd file

Description

Convert .R scripts into a .md/.Rmd file

Usage

r2md(filepattern = "*.R$", path = ".", savefilename = NA, backup = TRUE, body = "#' ")

Arguments

filepattern

the pattern of the script file names

path

the path of the folder which contains the .R scripts

savefilename

the destinated file name

backup

logical. whether backup the existent file

body

the indicator of the body text

Value

a markdown file

Examples

Run this code
# NOT RUN {
r2md()
# }

Run the code above in your browser using DataLab