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
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
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