Created
July 19, 2021 20:29
-
-
Save ayoskovich/98cf9eb5fdc1ddac059597b4741e82e4 to your computer and use it in GitHub Desktop.
Close and re-open a word / powerpoint file from within R
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ref_doc <- function(fname, prog){ | |
system(paste0("TASKKILL /F /IM ", prog)) | |
browseURL(fname) | |
} | |
ref_doc('foo.docx', | |
'winword.exe') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment