| 1 |
% Generated by roxygen2: do not edit by hand |
| 2 |
% Please edit documentation in R/package.R |
| 3 |
\name{xopen} |
| 4 |
\alias{xopen} |
| 5 |
\title{Open a file, directory or URL} |
| 6 |
\usage{ |
| 7 |
xopen(target = NULL, app = NULL, quiet = FALSE, ...) |
| 8 |
} |
| 9 |
\arguments{ |
| 10 |
\item{target}{String, the path or URL to open.} |
| 11 |
|
| 12 |
\item{app}{Specify the app to open \code{target} with, and its arguments, |
| 13 |
in a character vector. Note that app names are platform dependent.} |
| 14 |
|
| 15 |
\item{quiet}{Whether to echo the command to the screen, before |
| 16 |
running it.} |
| 17 |
|
| 18 |
\item{...}{Additional arguments, not used currently.} |
| 19 |
} |
| 20 |
\description{ |
| 21 |
Open a file, directory or URL, using the local platforms conventions, |
| 22 |
i.e. associated applications, default programs, etc. This is usually |
| 23 |
equivalent to double-clicking on the file in the GUI. |
| 24 |
} |
| 25 |
\section{Examples}{ |
| 26 |
|
| 27 |
|
| 28 |
\if{html}{\out{<div class="sourceCode">}}\preformatted{xopen("test.R") |
| 29 |
xopen("https://ps.r-lib.org") |
| 30 |
xopen(tempdir()) |
| 31 |
}\if{html}{\out{</div>}} |
| 32 |
} |
| 33 |
|