Please find a helpful R-package that eases reload of R scripts. Just download reload_1.0.tar.gz and run the following lines.
# Installation of reload install.packages("reload_1.0.tar.gz", repos = NULL, type="source") require("reload") # now source some functions e.g. source("http://www.thomas-liebig.eu/test.R") # and reload it reload()
You may also get a list of all functions in your workspace by entering desc()
. Just try these lines:
test<-function(a,b){a+b} desc()
You may also include it in your startup profile to allow seemless reloading of your scripts. Just edit the .Rprofile
file as follows:
.First <- function(){ require("reload") }