fm: Open a File Manager

Description Usage Arguments References See Also Examples

View source: R/fm.R

Description

Opens a file manager to browse the provided path. The default file manager can be set via options:

gtfo.fm.bin:

Binary to call.

gtfo.fm.args:

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

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
fm(path = getwd())

Arguments

path

[character(1)]
Path. Defaults to the current working directory as reported by getwd.

References

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

See Also

term to start a terminal and browse to start a browser.

Examples

1
2
3
4
5
6
7
8
## Not run: 
# Brose R's working directory
fm()

# Inspect R's tempdir
fm(tempdir())

## End(Not run)

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