owd: Open Working Directory

Description Usage Arguments Value Note Author(s) See Also Examples

View source: R/owd.R

Description

owd opens the current working directory (or a given directory path) in your computer's file manager.

Usage

1
owd(dir = '.')

Arguments

dir

A character string indicating a directory path. Defaults to '.', indicating the current working directory.

Value

owd does not return any value in R. However, it will return an error if a directory path is passed to it that does not exist, or that R does not have sufficient privledges to access.

Note

Tilde expansion (see path.expand) is performed on directory paths.

Author(s)

Benjamin G. Feakins, benjamin.feakins@ndph.ox.ac.uk

See Also

getwd for the path of the current working directory.

list.files for the contents of a directory.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
if (interactive()) {
## Open current working directory
owd()

## Open a directory using a relative path
owd('/usr/bin')

## Making use of tilde expansion to open the home directory
owd('~')
}

owd documentation built on Aug. 5, 2020, 5:09 p.m.

Related to owd in owd...