openRessource-character-method: Open Directory in File System Browser

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

Description

See generic: openRessource

Usage

1
2
## S4 method for signature 'character'
openRessource(path = ".", strict = FALSE, ...)

Arguments

path

character. File path.

strict

logical. TRUE: non-existing ressources trigger error; FALSE: non-existing ressources result in return value of FALSE.

...

Further arguments to be passed to subsequent functions/methods.

Value

logical. TRUE: successfully opened if ressource exists; FALSE: failed to open ressource as it does not exist.

Author(s)

Janko Thyson janko.thyson@rappster.de

References

https://github.com/Rappster/filesystr

See Also

openRessource

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
## Not run: 

## Directory //
## Absolute path:
openRessource(path = tempdir())
## Relative path (non-existing):
openRessource(path = "does-not-exist")
## Relative path (existing):
openRessource(path = "R")

## File //
## Absolute path:
path <- file.path(tempdir(), "test.txt")
file.create(path)
openRessource(path = path)
## Relative path
openRessource(path = "DESCRIPTION")

## Non-existing ressource //
openRessource(path = "abdce")
try(openRessource(path = "abdce", strict = TRUE))


## End(Not run)

rappster/filesystr documentation built on May 26, 2019, 11:17 p.m.