file.open: Open a File or URL

file.openR Documentation

Open a File or URL

Description

Opens a file or URL in the user's preferred application.

Usage

file.open(file)

Arguments

file

file or URL to be opened.

Details

file may be any number of files or URLs. Files will be normalized before opening, though they should already be full paths.

On macOS, files and URLs will be open using open, and under any other Unix-alike, files and URLs will be open using xdg-open.

Value

file invisibly.

Examples

## Not run: 
file.open(tempdir())
file.open("https://cran.r-project.org/doc/manuals/R-exts.html#Documenting-packages")

## End(Not run)

ArcadeAntics/essentials documentation built on Nov. 7, 2024, 4:33 p.m.