Re: [Rd] hello World problem

2006-01-12 Thread Duncan Murdoch
On 1/12/2006 10:46 AM, Romain Francois wrote: > Hi, > > I'm trying to build a simple R package 'helloWorld' with just one > function that prints 'hello World' on the C side. > I agree that it is completely useless, but I just start mixing R and C. > > My C file is as follows : > > #include > v

Re: [Rd] hello World problem

2006-01-12 Thread Prof Brian Ripley
On Thu, 12 Jan 2006, Romain Francois wrote: > Hi, > > I'm trying to build a simple R package 'helloWorld' with just one > function that prints 'hello World' on the C side. > I agree that it is completely useless, but I just start mixing R and C. > > My C file is as follows : > > #include > void h

Re: [Rd] hello World problem

2006-01-12 Thread Liaw, Andy
See the `Value' section of ?.C. Also, it's better to use the i/o provided by the R API; i.e., something like: #include "R.h" void helloworld() { Rprintf("Hello world!\n"); } Andy From: Romain Francois > > Hi, > > I'm trying to build a simple R package 'helloWorld' with just one > funct