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

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

r2md()
#> ..md was generated!