p_opendir: Attempts to open a directory in a file browser

Description Usage Arguments Note Examples

View source: R/p_opendir.R

Description

Attempts to open a directory in a file browser. Opening a directory isn't a platform independent but it is used in more than one function so moving this functionality to its own non-exported function makes sense.

Usage

1

Arguments

dir

A character string representing the path (either relative or absolute) to the directory to be opened. Defaults to the working directory.

Note

Most likely this function will move to a different package at some point as it's not specifically package related.

Examples

1
2
3
4
5
6
## Not run: 
p_opendir() # opens working directory
p_opendir(path.expand("~")) # opens home directory
p_opendir(pacman:::p_basepath())

## End(Not run)

pacman documentation built on May 2, 2019, 1:08 p.m.