Displaying 2 results from an estimated 2 matches for "g05ccc".
Did you mean:
g05cac
2004 Nov 11
1
problem building an R package under Windows XP with calls to
...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)
}
.Last.lib <- function(libpath)
{
library...
2004 Nov 11
1
FW: problem building an R package under Windows XP with calls to NAG C routines
...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 \R directory with the following R code:
>
>.First.lib<-f...