sourcefile {cacher}R Documentation

Get/set source file

Description

Get or set the current source file for analysis

Usage

sourcefile(srcfile = NULL)

Arguments

srcfile character string indicating the source file for examination, or NULL

Details

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.

Value

A character string indicating the currently active source file or NULL if none has been set.


[Package cacher version 1.0 Index]