Hi, I am new to R and I want to know how to use C code which contains two functions one called inside another.I know that how to use C code in R if it has only one function but dont know how to do it in above case. I want to use the same in R .My C code is as follows.
//#include <R.h> void sayHello(); void g(); void sayhello() { Rprintf("Hello world %d\n",global); } void g() { int a=9; int b=1; Rprintf("Hello world\n %d",(a+b)); sayHello(); } Help would be greatly appreciated Thanks [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.