openfile: Open a file

View source: R/openfile.R

openfileR Documentation

Open a file

Description

Open a file using [base::system() and "open" (well, actually "start" on Linux).

Usage

openfile(file)

Arguments

file

File name (character string)

Details

I'd thought that to open a file you'd use open in MacOS and start in Windows, but system("start myfile.pdf") doesn't work in Windows, and rather system("open myfile.pdf") does, so here we're just using open, except on Linux where at least on my system, you can use "start".

Value

None.

Examples

## Not run: openfile("myplot.pdf")


broman documentation built on May 29, 2024, 7:18 a.m.

Related to openfile in broman...