Hi, All
I got the following message while trying to compile a file and link it to
some local libraries. I am sure that the path to
local libs are given correctly, them why can't the linker find them ?
These libs are static ones, like libBOOMdebug.a , is this a problem ? Do
I need to c
HI, all
I am debugging an R code with dynamically loaded function in it. It seems
set.seed(n) does not give me the same
random draws every time. Could somebody tell me what I should do to get the
same outcome verytime ?
I am not sure what infomation is relevent to this question , the f
ct: Re: [Rd] set_seed
To: Tong Wang <[EMAIL PROTECTED]>
Cc: R-devel
> On Mon, 14 May 2007, Tong Wang wrote:
>
> > Hi, All:
>
> > It seemed set_seed is usable only when Rmath is used as a
> standalone
> > library, then what should I use when I need to link to
Hi, All:
It seemed set_seed is usable only when Rmath is used as a standalone
library, then what should I use when I need to link to R.dll.
Thanks .
tong
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Hi, All:
I had some trouble debugging C source dynamically loaded into R , when I
issued N in gdb(or insight) , the debugger, instead of moving downward step by
step, jumped to strange positions (upward, downward, one step, a few steps
away).
To enter the debugger, I issued gdb(insight
It's working , Thanks a lot !!!
tong
- Original Message -
From: Prof Brian Ripley <[EMAIL PROTECTED]>
Date: Saturday, May 12, 2007 4:27 am
Subject: Re: [Rd] Problem with rnorm ?
To: Tong Wang <[EMAIL PROTECTED]>
Cc: R-devel
> 1) You are linking an executable agains
Hi,
I couldn't get the rnorm() work right in C, for example, the following code
produce strange results.
#include
#include
int main(void){
double x[3];
for(int i=0;i<3;i++) x[i]=rnorm(0,1);
printf("%lf,%lf,%lf",x[0],x[1],x[2]);
return 0;
}
output : -8.773321,-8.773321,-8.77332
Hi,
I have tried several headers in RHOME/include , but none of them seemed to
work .
Thanks for your help.
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Hi,
I am in the situation where I could get my code run correctly under GNU C,
but it produced different (strange) results
while running in R . ( I use .C to call the function). May I get some general
advice on how could I do step by step debug
of source code in R ?
Thanks
___
Having a hard time picking up C :( Thanks a lot for all your time .
tong
- Original Message -
From: Peter Dalgaard <[EMAIL PROTECTED]>
Date: Wednesday, April 4, 2007 12:44 am
Subject: Re: [Rd] Strange number produced by dnorm
To: Tong Wang <[EMAIL PROTECTED]>
Cc: R-de
Hi All,
I just started to learn compiling C codes for R usage, and got a problem
when I was playing with my 'hello world' code.
#include
#include
#include
SEXP test( ) {
double x;
x=dnorm(1.0,0.0,1.0,1);
printf(" x value is: %d \n",x);
return(R_NilValue);
}
I got the re
11 matches
Mail list logo