Skip to contents

Convert selected text to roxygen comment

Usage

convert_roxygen(txt)

Arguments

txt

, a string vector

Value

a string vector with roxygen commet at each prefix

Examples

txt <- "a
b
c
d"
convert_roxygen(txt)
#> [1] "#' a\n#' b\n#' c\n#' d"