pacman (version 0.5.1)

p_opendir: Attempts to open a directory in a file browser

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

p_opendir(dir = getwd())

Arguments

dir

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

Examples

Run this code
# NOT RUN {
p_opendir() # opens working directory
p_opendir(path.expand("~")) # opens home directory
p_opendir(pacman:::p_basepath())
# }

Run the code above in your browser using DataLab