Convert vignettes from Rnw to Rmd
rnw2rmd.Rd
This function is derived from spMisc. See also: https://rdrr.io/github/GegznaV/spMisc/src/R/rnw2rmd.R. It can convert old Sweave vignettes into R Markdown. Please do not expect it to do wonders, but to give you a good starting point for conversions.
Usage
rnw2rmd(
file,
output_file = gsub("[Rr]nw$", "Rmd", file),
output_format = "rmarkdown::html_vignette",
extra_replacement = NULL,
overwrite = FALSE
)