Open a file using [base::system() and
"start" on Linux).
File name (character string)
I'd thought that to open a file you'd use
start in Windows, but
system("start myfile.pdf") doesn't work in Windows, and
system("open myfile.pdf") does, so here we're
open, except on Linux where at least on my
system, you can use
## Not run: openfile("myplot.pdf")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.