browse: Open a Browser

Description Usage Arguments References See Also Examples

View source: R/browse.R

Description

Opens a browser to browse the provided url. The default browser can be set via options:

gtfo.browse.bin:

Binary to call.

gtfo.browse.args:

Arguments for bin. Use ā€œ%sā€ as placeholder for the url.

If no option is set, xdg-open will be called on Linux, open on Mac OS and start on Windows. These commands open the associated default application.

Usage

1

Arguments

url

[character(1)]
URL to open.

References

https://github.com/freedesktop/xdg-utils

See Also

term to start a terminal and fm to start a file manager.

Examples

1
2
3
4
5
## Not run: 
# Open the R project web site
browse("https://www.r-project.org")

## End(Not run)

mllg/gtfo documentation built on May 23, 2019, 1:24 p.m.