Re: [Rd] call fortran in R

2005-08-04 Thread stefano iacus
please don't mix gcc 4.0 and g77. Also don't mix R binary which is gcc-3.3/g77-3.4.2 with gcc4 or gfortran. stefano On 04/ago/05, at 17:25, Sébastien Durand wrote: > Dear all, > > Since the command you ask me to type doesn't show anything > Here some more information, on my system and on the fo

[Rd] Documentation bug in libPaths.Rd (PR#8050)

2005-08-04 Thread Weigand . Stephen
The Details section of the help for .Library / .libPaths has: "the library search path is set to the existing files in 'unique(new, .Library)' and this is returned." I think 'unique(new, .Library)' should be be changed to 'unique(c(new, .Library))'. Thank you, Stephen platform sparc-s

Re: [Rd] valgrind complains about regex.c (PR#8043)

2005-08-04 Thread Charles Geyer
On Wed, Aug 03, 2005 at 10:25:02PM +0200, Peter Dalgaard wrote: > [EMAIL PROTECTED] writes: > > > On Tue, Aug 02, 2005 at 07:50:54AM -0400, Duncan Murdoch wrote: > > > > Charlie, have you tried a recent version of R-patched? > > > > Now I have. The computer is my laptop and not connected to the

Re: [Rd] call fortran in R

2005-08-04 Thread Simon Urbanek
On Aug 4, 2005, at 1:38 PM, Sébastien Durand wrote: > Ok, I am presently updating my system. > > How do you set > setenv gcc /usr/local/bin/gfortran. That won't help even if you do it in bash - this is wrong! (F77=gfortran is what may help if you want to re-compile R with gcc4). If you

Re: [Rd] call fortran in R

2005-08-04 Thread Sébastien Durand
Forget that last reply! I found how to set the environment! Le 05-08-04 à 13:38, Sébastien Durand a écrit : > Ok, I am presently updating my system. > > How do you set > setenv gcc /usr/local/bin/gfortran. > > Using bash. > > Then I will the command to compile the foo.f file been the same

Re: [Rd] call fortran in R

2005-08-04 Thread Sébastien Durand
Ok, I am presently updating my system. How do you set setenv gcc /usr/local/bin/gfortran. Using bash. Then I will the command to compile the foo.f file been the same! I guess so S. > > also gcc 4061 is a bit old -- the tiger update in 10.4.2 was > 50xx, i think, cvs is up to apple build

[Rd] add1.lm and add1.glm not handling weights and offsets properly (PR#8049)

2005-08-04 Thread d . firth
I am using R 2.1.1 under Mac OS 10.3.9. Two related problems (see notes 1. and 2. below) are illustrated by results of the following: y <- rnorm(10) x <- z <- 1:10 is.na(x[9]) <- TRUE lm0 <- lm(y ~ 1) lm1 <- lm(y ~ 1, weights = rep(1, 10)) add1(lm0, scope = ~ x) ## works ok add1(lm1, scope =

Re: [Rd] call fortran in R

2005-08-04 Thread Sébastien Durand
You are totally write I will learn and already did learn more than much with master Ripley replies. Thus I do still state that I mentionned that I was using mac os x in a message that was scrubbed (???) see Duncan Murdoch reply for proof... ;) Any how next time I will make sure it shows in

Re: [Rd] call fortran in R

2005-08-04 Thread Prof Brian Ripley
So the problem IS that your symbol is not exported by your shared object, and you need advice on the tools you are using (not R). On Thu, 4 Aug 2005, Sébastien Durand wrote: Ok, Dear all, I have state previously, I am using mac os X tiger on a g5, using the last version of R 2.1.1 When I ty

Re: [Rd] call fortran in R

2005-08-04 Thread Jeffrey Horner
Sébastien Durand wrote: > Ok, > > Dear all, > > I have state previously, I am using mac os X tiger on a g5, using the > last version of R 2.1.1 Well, to Prof. Ripley's point, you never stated that you were running OS X, just a mac G5. Linux also runs on a G5. Learn much, you will, from Maste

[Rd] call fortran in R

2005-08-04 Thread Sébastien Durand
Dear all, Since the command you ask me to type doesn't show anything Here some more information, on my system and on the foo.so compiled file I am using g77 version 3.4.4 Configured with: ../gcc/configure -- enable-threads=posix --enable-languages=f77 I am using gcc version 4.0.0 20041026 (App

[Rd] call fortran in R

2005-08-04 Thread Sébastien Durand
Ok, Dear all, I have state previously, I am using mac os X tiger on a g5, using the last version of R 2.1.1 When I type in the terminal nm -g ~/Desktop/Fortan_kmeans/kmeans3.so or nm /Users/sebas/Desktop/Fortan_kmeans/kmeans3.so | grep ' T ' Nothing appears on my screen When I type nm ~/D

Re: [Rd] call fortran in R

2005-08-04 Thread Prof Brian Ripley
On Thu, 4 Aug 2005, Duncan Murdoch wrote: Sébastien Durand wrote: At the beginning I was not using symbol.For(), and whatever I add a "_" or not e.g.: .Fortran("wrapper",... I get the same error You could look at symbol.For("wrapper"), and see if the name it prints is exported from your .s

Re: [Rd] call fortran in R

2005-08-04 Thread Duncan Murdoch
Sébastien Durand wrote: > At the beginning I was not using symbol.For(), and whatever I add a > "_" or not > > e.g.: > > .Fortran("wrapper",... > > I get the same error You could look at symbol.For("wrapper"), and see if the name it prints is exported from your .so. I don't know how to see

Re: [Rd] call fortran in R

2005-08-04 Thread Duncan Murdoch
Sébastien Durand wrote: > Thanks for your help, > > I had read those web pages already, and the post you referred to > already. > > So I will try to give more details to what I have done till now > > First I must mention again that I am using a mac under tiger. So I > am using .so files. >

[Rd] call fortran in R

2005-08-04 Thread Sébastien Durand
At the beginning I was not using symbol.For(), and whatever I add a "_" or not e.g.: .Fortran("wrapper",... I get the same error Sebastien > You want to just say: > > .Fortran("wrapper", ... > > not > > .Fortran(symbol.For("wrapper"), ... > > Patrick Burns > [EMAIL PROTECTED] > +44 (0)20 8

[Rd] call fortran in R

2005-08-04 Thread Sébastien Durand
Thanks for your help, I had read those web pages already, and the post you referred to already. So I will try to give more details to what I have done till now First I must mention again that I am using a mac under tiger. So I am using .so files. My fortran file is called kmeans.f, and my

Re: [Rd] call fortran in R

2005-08-04 Thread Ales Ziberna
If I understand correctly, you used .Fortran("wrapper",) The problem might be that the function name ("wrapper") was changed in the compilation of the code! See the mail bellow for clues (a previous post on R-help by Duncan Murdoch) Natalie Hawkins wrote: > Using R 2.0.1 on Windows XP, I am