search for: nagg05

Displaying 2 results from an estimated 2 matches for "nagg05".

Did you mean: lagg0
2004 Nov 11
1
problem building an R package under Windows XP with calls to
...ding that more complex package. Before I go on with this issue, here is how I solved my initial problem: After creating an R package directory structure, I included in the \src directory my test.c file containing the following C code: #include <stdio.h> #include <nag.h> #include <nagg05.h> void test() { long i; g05ccc(); for(i=0;i<10000;i++)printf("Hello the world - NAG random number: %lf\n",g05cac()); } and a test.R file in the \R directory with the following R code: .First.lib<-function(lib,pkg){ library.dynam("test",pkg,lib) } .L...
2004 Nov 11
1
FW: problem building an R package under Windows XP with calls to NAG C routines
...Before I >go on with this issue, here is how I solved my initial problem: > >After creating an R package directory structure, I included in the \src >directory my test.c file containing the following C code: > >#include <stdio.h> >#include <nag.h> >#include <nagg05.h> > >void test() >{ > long i; > > g05ccc(); > for(i=0;i<10000;i++)printf("Hello the world - NAG random number: >%lf\n",g05cac()); > >} Read the Writing R Extensions manual to find out how to do output using Rprintf. >and a test.R file in the...