Learn R Programming

arm (version 1.0-1)

go: Function to Recall Last Source File

Description

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

Usage

go(..., which.source=NULL, add=FALSE, timer=FALSE)

Arguments

...
list of filenames as character strings
which.source
the source file of which the first arugment belongs to
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

Run the code above in your browser using DataLab