open.target.directory: Open file/plot directory

View source: R/open.target.directory.R

open.target.directoryR Documentation

Open file/plot directory

Description

Given a PATH, either ending with "/" or a file name, this function opens a window to show you that directory.

Usage

## S3 method for class 'target.directory'
open(element_path)

Arguments

element_path

The path, written unix-style. it has to be absolute, either from the root, or from the std. home ("~/")

Value

A window opened on your file browsing element ("Finder" or "Explorer")

Examples

# in Unix (Linux or Mac)
open.target.directory("/home/user/Documents/my_superImportantDoc.txt")
# in Windows
open.target.directory("C:/Users/user/Documents/my_superImportantDoc.txt")



g-antonello/gautils2 documentation built on Nov. 28, 2022, 9:39 a.m.