src: Source a File from the Current Working Directory

Description Usage Arguments Side Effects Author(s) See Also Examples

View source: R/src.s

Description

src concatenates ".s" to its argument, quotes the result, and sources in the file. It sets options(last.source) to this file name so that src() can be issued to re-source the file when it is edited.

Usage

1
src(x)

Arguments

x

an unquoted file name aside from ".s". This base file name must be a legal S name.

Side Effects

Sets system option last.source

Author(s)

Frank Harrell

See Also

source

Examples

1
2
3
4
5
## Not run: 
src(myfile)   # source("myfile.s")
src()         # re-source myfile.s

## End(Not run)

harrelfe/Hmisc documentation built on Oct. 3, 2019, 9:34 p.m.