NEWS | R Documentation |
Added tryCatch2()
, introducing argument else.
similar
to try except
in ‘Python’.
Added else.
argument to this.path()
,
this.dir()
, shFILE()
, and normalized.shFILE()
,
a function to act on the return value.
Added asArgs()
, fileArgs()
, and
withArgs()
to more easily provide arguments to a
script.
Added from.shell()
to determine if a script was run
from a shell.
Added this.proj(...)
, similar to
here::here(...)
, except that this.proj()
supports multiple projects in one R session.
this.path::here()
no longer uses dirname()
on
a UNC path.
this.path()
and all its associated functions now
work in VSCode.
when source
-ing a file URL,
source("file:///path/to/file")
, this.path()
no longer attempts to re-open a connection.
All previously defunct functions were removed entirely.
this.path()
, this.dir()
, shFILE()
, and
normalized.shFILE()
were given a new argument
default
that will be evaluated and returned if there
is no executing script or command line argument
FILE was not found.
this.path2()
, this.dir2()
, and
this.dir3()
are deprecated and should be replaced
with this.path(default = NULL)
,
this.dir(default = NULL)
, and
this.dir(default = getwd())
, respectively.
normalized.shFILE()
no longer sets attribute
"this.path.from.shell"
, that is now handled by
this.path()
.