Re: [R] Re: how to define functions in such a situation

From: Uwe Ligges <>
Date: Tue 07 Jun 2005 - 23:24:43 EST

Hu Chen wrote:

> I got a dirty way to solve this. 
> write a temp .R source file including these new functions, then


Don't know if you really have to do it that way, but I also really don't understand what you are going to do...

> but I don't know if there are some temp directory for R to store temp files?

See ?tempfile and ?tempdir

Uwe Ligges

> On 6/7/05, Hu Chen <> wrote:

>>hi R folks,
>>I need read a file from hardisk or www web. Then I need to define some
>>new functions according to the contents of the read file.
>>For example, i need write a package name "mypackage" like this:
>>>read(some_file_on_web) #to see its content, suppose it contains:
>>then 3 new functions need to be created and usable.
>>the problem is, how could I create functions after executing
>>">library(mypackage)" and make these new functions visible and usable
>>Any information are appreciated. forgive me if this question is very
>>stupid. but I really need help.
>>Thank you all.
> ______________________________________________
> mailing list
> PLEASE do read the posting guide!

______________________________________________ mailing list PLEASE do read the posting guide! Received on Tue Jun 07 23:47:38 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:32:26 EST