Function to Recall Last Source File

Share:

Description

A function that like source() but recalls the last source file names by default.

Usage

1
go(..., add=FALSE, timer=FALSE)

Arguments

...

list of filenames as character strings.

add

add these names to the current list; if replace, then FALSE.

timer

time the execution time of go().

Author(s)

Jouni Kerman jouni@kerman.com kerman@stat.columbia.edu

Examples

1
2
3
4
5
6
7
8
    go('myprog')            # will run source('myprog.r')
    go()                    # will run source('myprog.r') again
    go('somelib',add=TRUE)  # will run source('myprog.r') and source('somelib.r')
    go('myprog','somelib')  # same as above
    go('mytest')            # will run source('mytest') only
    go()                    # runs source('mytest') again
    G                       # short cut to call go()