Render an R Markdown or R document to Markdown format
Examples
# \donttest{
rlang::check_installed("rmarkdown")
tmp <- tempfile(fileext = ".Rmd")
writeLines(c("---", "title: Test", "---", "", "Hello, world!"), tmp)
render_rmd(path = tmp)
#>
#>
#> processing file: file1b2423147c8a.Rmd
#> 1/1
#> output file: file1b2423147c8a.knit.md
#> /opt/hostedtoolcache/pandoc/3.8.3/x64/pandoc +RTS -K512m -RTS file1b2423147c8a.knit.md --to markdown_strict-yaml_metadata_block --from markdown+autolink_bare_uris+tex_math_single_backslash --output file1b2423147c8a.md
#>
#> Output created: file1b2423147c8a.md
# }
