Re: [R] how to call a C program from R function

2003-08-28 Thread Prof Brian Ripley
On Thu, 28 Aug 2003, Martin Olivier wrote: > Hi all, > > I would like to call a C program from R function. I tried to use the > .C() function > without success. I need a very simple example (such as the hello > program) to understand > how it works. Could you give a such example? There is one

Re: [R] how to call a C program from R function

2003-08-28 Thread Thomas Petzoldt
Martin Olivier wrote: Hi all, I would like to call a C program from R function. I tried to use the .C() function without success. I need a very simple example (such as the hello program) to understand Do you want to call a C program (executable) or a shared library? If you want to run a compil

[R] how to call a C program from R function

2003-08-28 Thread Martin Olivier
Hi all, I would like to call a C program from R function. I tried to use the .C() function without success. I need a very simple example (such as the hello program) to understand how it works. Could you give a such example? (I use the 1.7.1 Version of R with linux) Does it work in the case of