Load a program from internet

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Load a program from internet

David Hajage
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")

--
David

        [[alternative HTML version deleted]]

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Reply | Threaded
Open this post in threaded view
|

Re: Load a program from internet

Peter Dalgaard
"David Hajage" <[hidden email]> 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
~~~~~~~~~~ - ([hidden email])                  FAX: (+45) 35327907

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Reply | Threaded
Open this post in threaded view
|

Re: Load a program from internet

David Hajage
In reply to this post by David Hajage
ok...

I've juste understood that my computer (at work) doesn't let R access to
internet... That's why I was wondering if it works !

I've made a function which adds "exposed to risk" on your survival curve...
If you want to try :

source("http://pepereblog.free.fr/blog/share/tigeR%202.0.r")

tigeR.graph(aml$time, aml$status, aml$x, tps = seq(0,72, 24), IC = 24,
decalIC = 0.5, legend = names(table(aml$x)), main = "Survival")

tigeR.results(aml$time, aml$status, aml$x, latex = F)

It's in french, but you can modify it if you want...

Thank you all for your answers, and sorry for my english.

2006/5/29, David Hajage <[hidden email]>:

>
> and sorry for my english !...
>
> 2006/5/29, David Hajage <[hidden email]>:
>
> >  thank you.
> >
> > Same result... It doesn't work ! But i will try at home... I'm sure il
> > will work !
> >
> > Or you can try : I've made a function which adds "exposed to risk" on
> > your survival curve...
> >
> > source("http://pepereblog.free.fr/blog/share/tigeR%202.0.r ")
> >
> > tigeR.graph(aml$time, aml$status, aml$x, tps = seq(0,72, 24), IC = 24,
> > decalIC = 0.5, legend = names(table(aml$x)), main = "Survival")
> >
> >  tigeR.results(aml$time, aml$status, aml$x, latex = F)
> >
> > It's in french, but you can modify it if you want...
> >
> > Thank for your response.
> > 2006/5/29, Christian Ritz <[hidden email]>:
> >
> > > Hi David,
> > >
> > > try:
> > >
> > >
> > > source(url(" http://davidblog/prog.r "))
> > >
> > >
> > > Christian
> > >
> >
> >
> >
> > --
> >
> > David
> >
>
>
>
> --
>
> David
>



--
David

        [[alternative HTML version deleted]]

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html