Learn R Programming

sinew (version 0.4.0)

rmOxygen: Remove roxygen2 Comments From an .R File

Description

Strips .R files of roxygen2 style comments (#')

Usage

rmOxygen(.file, showonexit = TRUE)

Arguments

.file

character, path to an .R file, character vector of length 1

showonexit

logical, show file on exit. Default: TRUE

Value

Nothing. Overwrites files as a side effect

Examples

Run this code
# NOT RUN {
rmOxygen("./myRfunctions/function1.R")
# }

Run the code above in your browser using DataLab