Learn R Programming

mindr (version 1.2.3)

r2rmd: Convert .R scripts into a .Rmd file

Description

Convert .R scripts into a .Rmd file

Usage

r2rmd(filepattern = "*.R$", savefile = TRUE, path = ".", savefilename = NA)

Arguments

filepattern

the pattern of the script file names

savefile

logical. Whether to save the output as a file.

path

the path of the folder which contains the .R scripts

savefilename

the destinated file name

Value

an R markdown file

Examples

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

Run the code above in your browser using DataLab