[R] "load" for text file with functions?

Ben Bolker ben at zoo.ufl.edu
Fri Sep 7 13:58:17 CEST 2001


  Do you mean source() ?

On Fri, 7 Sep 2001, Agustin Lobo wrote:

> Hi!
>
> I'm writing down the methods that I used to
> migrate from Splus to R and expand a bit the
> R docs for this subject. Prior to send these
> notes to the FAQ curator I would like to make sure
> on the following:
>
> Given an ascii text file with several
> functions (i.e., myfuncs.txt), is there any equivalent to
> load(), so that the functions become
> usable in R? Or is it necessary
> to install it as a library?
>
> (As a quick trick, I used
> fix(newfunc) and then pasted
> all the file myfuncs.txt in newfunc.
> Then save(newfunc,file="myfuncs.R").
> Note that data.restore does not
> give good results for functions).
>
> Thanks
>
> Dr. Agustin Lobo
> Instituto de Ciencias de la Tierra (CSIC)
> Lluis Sole Sabaris s/n
> 08028 Barcelona SPAIN
> tel 34 93409 5410
> fax 34 93411 0012
> alobo at ija.csic.es
>
>
>
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
> Send "info", "help", or "[un]subscribe"
> (in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
>

-- 
318 Carr Hall                                bolker at zoo.ufl.edu
Zoology Department, University of Florida    http://www.zoo.ufl.edu/bolker
Box 118525                                   (ph)  352-392-5697
Gainesville, FL 32611-8525                   (fax) 352-392-3704

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list