[R] Problem with Perl script calling R function

Sivakumar Ramagopal ramagopa at etek.chalmers.se
Wed Oct 20 12:18:50 CEST 2004

read.flow is defined in another file (in my case its called 'SNet',
without any extensions) in another directory.

The perl script is located in /usr/lib/R/library/SNet/exec/. This
directory is in my PATH.

The SNet file is in /usr/lib/R/library/SNet/R/.


> It seems that read.flow is not present.  Perhaps it is in another
> library that needs to be loaded?  I've not used S-Net or R-1.4.1,
> though.
> Sean
> On Oct 20, 2004, at 4:16 AM, Sivakumar Ramagopal wrote:
>> Hi,
>> I'm a student doing my masters thesis and trying to work with S-Net
>> version 1.0 (tool used for statistical analysis and visualizations of
>> internet traffic) that is written in R.
>> The problem is this: I have a perl script calling a function defined
>> in an
>> R script that is located in a directly different from where the perl
>> script is. This gives the following error.
>>>>> echo
>> 'read.flow("BLDemo.2000.03.08.h12.m30.35.tcppac.gz",type="tcppac")' |
>> /cab/ce/user/ramagopa/lib/bin/R --no-save --no-restore --quiet --slave
>> Error: couldn't find function "read.flow"
>> Execution halted
>> Platform details:
>> -----------------
>> SNet-1.0
>> R-1.4.1 (I have to use this version because the version of SNet
>> requires
>> only this).
>> R-recommended-1.4.1
>> perl-5.8.5
>> Could someone help me out with this problem? Additionally, I'd really
>> appreciate it if someone can point me to an SNet mailing list; I
>> haven't
>> found one on the web.
>> Thanks,
>> Shiva
>> ______________________________________________
>> R-help at stat.math.ethz.ch mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide!
>> http://www.R-project.org/posting-guide.html

More information about the R-help mailing list