Re: [R] invoking user-defined function

From: Philipp Pagel <p.pagel_at_wzw.tum.de>
Date: Tue, 25 Nov 2008 09:25:40 +0100

On Mon, Nov 24, 2008 at 11:35:37PM -0800, Kinoko wrote:
> Can somebody tell me how to invoke user-defined functions from script
> files during run-time?
> Basically I have (almost) one function per script file.
>
> I am thinking of something like
>
> #include in C++
> import in Java/Python
> use in Perl

As you already pointed out that you do not wish to build a pacakge, the most simple way is to use source() to read the function definition.

cu

        Philipp

-- 
Dr. Philipp Pagel
Lehrstuhl für Genomorientierte Bioinformatik
Technische Universität München
Wissenschaftszentrum Weihenstephan
85350 Freising, Germany
http://mips.gsf.de/staff/pagel

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Tue 25 Nov 2008 - 08:36:34 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 25 Nov 2008 - 09:30:41 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive