sourcefile {cacher} | R Documentation |
Get or set the current source file for analysis
sourcefile(srcfile = NULL)
srcfile |
character string indicating the source file for
examination, or NULL |
When srcfile
is NULL
, sourcefile
returns a
character vector of the currently active source file to be examined.
This value affects other functions such as code
,
runcode
, etc. If no source file has been previously set, then
sourcefile
returns NULL
.
If srcfile
is a character string, then the currently active
source file is set to whatever value of srcfile
is given.
A character string indicating the currently active source file or
NULL
if none has been set.