search for: g05cac

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

Did you mean: 05ac
2004 Nov 11
1
problem building an R package under Windows XP with calls to
...tory 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) } .Last.lib <- function(libpath) { library.dynam.unload("test",libpath) } gotest <- function() { .C("test")...
2004 Nov 11
1
FW: problem building an R package under Windows XP with calls to NAG C routines
...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 \R directory with the following R code: > >.First.lib<-function(lib,pkg){ > library.dynam("test",pkg,lib) >} > >.Last.lib <- function(...