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

Popular posts from this blog

command line - Use qwinsta in PowerShell ISE -

java - Incorrect order of records in M-M relationship in hibernate -

Python website log in: BIG-IP can not find session information in the request -