[R] Load a program from internet

Peter Dalgaard p.dalgaard at biostat.ku.dk
Mon May 29 11:55:31 CEST 2006


"David Hajage" <dhajage at gmail.com> writes:

> Hello,
> 
> I know how to load a program from my computer with the command "source".
> 
> example :
> source("home/david/prog.r")
> 
> But is it possible to load a program from the internet ?
> 
> example :
> source("http://davidblog/prog.r")

Yes....

(

e.g., Bioconductor uses this mechanism, see
http://www.bioconductor.org/docs/install-howto.html, and - not to put
too fine a point on it: Did you consider reading the part of ?source
that says 

file: a connection or a character string giving the pathname of the
          file or URL to read from.

)
-- 
   O__  ---- Peter Dalgaard             Øster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark          Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)                  FAX: (+45) 35327907



More information about the R-help mailing list