| Arguments$getWritablePathname {R.utils} | R Documentation |
Gets a writable pathname.
## Static method (use this): ## Arguments$getWritablePathname(..., mustExist=FALSE, mustNotExist=FALSE, mkdirs=TRUE, ## maxTries=5L) ## Don't use the below: ## S3 method for class 'Arguments' getWritablePathname(static, ..., mustExist=FALSE, mustNotExist=FALSE, mkdirs=TRUE, maxTries=5L)
... |
Arguments passed to |
mustExist |
If |
mustNotExist |
If the file exists, and |
mkdirs |
If |
maxTries |
A positive |
Returns a character string of the pathname of the file.
If the argument was invalid an Exception is thrown.
If any argument in ... is NA, an exception is thrown.
On very rare occassions, we have observed on a large shared file
system that if one tests for the existance of a directory immediately
after creating it with dir.create(), it may appear not
to be created. We believe this is due to the fact that there is a
short delay between creating a directory and that information being
fully propagated on the file system. To minimize the risk for such
false assertions on "slow" file systems, this method tries to create
a missing directory multiple times (argument maxTries) (while
waiting a short period of time between each round) before giving up.
Henrik Bengtsson
*getReadablePathname().
filePath.
mkdirs.
For more information see Arguments.