r - How to get output file to open automatically using render() function in RMarkdown -
this small point, it's important bigger i'm creating.
when run .rmd file within rstudio pressing "knit word" button, word file created opens automatically.
however, when run file using render() function, file created not open -- have navigate file location , open manually.
how can output file open automatically using render() function?
you cannot directly render
function. can open document using e.g. browseurl
.
filepath <- "c:/test" render(file.path(filepath, "test.rmd")) browseurl(file.path("file:/", filepath, "test.docx"))
Comments
Post a Comment