[R] loading functions from files

Saurav Pathak saurav at sas.upenn.edu
Thu Jan 23 20:28:16 CET 2003


hi,

i think this is a basic question, but i did not find any
documentation.

i have a file, helloworld.R, which has

helloworld <- function() {
  cat("Hello World\n")
}

how may i load this file in R so that i may say at the prompt:

> helloworld()

i am not yet ready to write a package.

thanks,
-- 
saurav




More information about the R-help mailing list