winopen | R Documentation |
This function will open the target path, x
, with it's associated
application, or with Windows Explorer if x
is a directory
winopen(x)
x |
A folder or file to be opened. |
If the file or directory does not exist it will open the first parent directory that does exists.
This function is primarily called for the side effect of opening a
file or directory It invisibly returns a normalized path to the item it
opened, which is either x
or a parent directory that exists on disk.
## Not run: # Open the R directory winopen("C:/Program Files/R/") # Plot to a file and then open the file f <- tempfile(fileext = ".png") png(f) plot(1, 1) dev.off() winopen(f) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.