s-news
[Top] [All Lists]

separate file containing user defined functions

To: s-news@wubios.wustl.edu
Subject: separate file containing user defined functions
From: Andrew Czarn <aczarn@csse.uwa.edu.au>
Date: Fri, 21 Feb 2003 15:12:38 +0800 (WST)
In-reply-to: <Pine.LNX.4.44.0209101833520.12828-100000@server02>
to anyone who can assist.

currently, i have a number of user (self) defined functions i use in the 
course of my analyses.

i run splus in BATCH mode and simply include these functions at the start 
of my splus code in the input file.

however, what i would like to do is have these functions in a separate 
file (ie, separate to the input file for BATCH mode) which are
read by the input file on execution.

for example,

in my directory i might have data.dat, analysis.txt and userFunctions.txt

i would then type

Splus BATCH analysis.txt analysisOutput.txt

            input file   output file

what i want is that there is a statement in analysis.txt which causes
the functions in userFunctions.txt to be read.

in other words, i simply want the splus code for the functions i define
to be in a separate file, yet accessible to other code that is executing.
this makes handling the code much tidier.

is there a simple way of doing this ?? for example, using some sort of
read statement or something like this ??

thanks kindly

andrew

Dr AST Czarn




<Prev in Thread] Current Thread [Next in Thread>
  • separate file containing user defined functions, Andrew Czarn <=