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.
p_opendir(dir = getwd())
Most likely this function will move to a different package at some point as it's not specifically package related.
if (FALSE) { # \dontrun{
p_opendir() # opens working directory
p_opendir(path.expand("~")) # opens home directory
p_opendir(pacman:::p_basepath())
} # }