if (interactive()) {
# Convert roxygen to Markdown in one run
roxygen2md()
}
# Alternatively, convert in three steps:
if (interactive()) {
# 1. Enable Markdown processing
roxygen2md("none")
menu("Please examine/commit the changes and press 1 to continue.")
# 2. Convert simple markup
roxygen2md("simple")
menu("Please examine/commit the changes and press 1 to continue.")
# 3. (Optionally) Remove some of the \code{} expressions
roxygen2md("unlink")
menu(paste0(
"Please remove all unwanted changes, commit the wanted ones, ",
"and press 1 to continue."
))
# 4. Convert everything, including links
roxygen2md("full")
}
Run the code above in your browser using DataLab