Learn R Programming

arm (version 1.4-13)

GO: Function to Recall Last Source File

Description

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

Usage

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().

Examples

Run this code
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()

Run the code above in your browser using DataLab