Function files can be downloaded from here. You can do this from within R with the command
source(file=url("http://www.math.csi.cuny.edu/UsingR/Functions/function.R"))
where function.R is the proper name. Function files come with an accompanying html file for documentation.