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

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -