[R] Fortran code

2006-04-13 Thread Sotiris Adamakis
Hi! I have faced a big problem with R on my LINUX machine. I want to load a Fortran code via R, but the program can't do it. I have tried to load simpler codes, which seem to work perfectly, but the code I would like to load - which is a little more complicated - can't be loaded. I have

Re: [R] Fortran code

2006-04-13 Thread Dave Roberts
Sotiris, R is generally fairly graceful about FORTRAN in linux; Windows is another matter. For example, R/linux will allow you to write to the R console as a file device without using the special I/O routines often needed in R. There are many very complicated FORTRAN routines currently

[R] Fortran and C entry point problem.

2006-03-30 Thread Steve Su
Dear All, I have seen a number of e mails on this topic but I have not seen a general solution to date. I have Fortran and C source codes and they have been compiled successfully using: R CMD build mypackage And R CMD install mypackage Without error messages. I then open R

[R] Fortran?

2005-10-14 Thread Sam R. Smith
In a package, i type a function name and got the following message: ... tmp - .Fortran(master, x = as.double(x), y = as.double(y), sort = as.logical(sort), rw = as.double(rw), npd = as.integer(npd), ntot = as.integer(ntot), nadj = integer(tadj), madj = as.integer(madj),

Re: [R] Fortran?

2005-10-14 Thread Roger Bivand
On Fri, 14 Oct 2005, Sam R. Smith wrote: In a package, i type a function name and got the following message: ... tmp - .Fortran(master, x = as.double(x), y = as.double(y), sort = as.logical(sort), rw = as.double(rw), npd = as.integer(npd), ntot =

Re: [R] Fortran?

2005-10-14 Thread Peter Dalgaard
Sam R. Smith [EMAIL PROTECTED] writes: In a package, i type a function name and got the following message: ... tmp - .Fortran(master, x = as.double(x), y = as.double(y), sort = as.logical(sort), rw = as.double(rw), npd = as.integer(npd), ntot = as.integer(ntot),

Re: [R] Debugging R/Fortran in Windows

2005-09-09 Thread Uwe Ligges
James Wettenhall wrote: Hi, I'm trying to debug an R interface to a Fortran subroutine from Windows. (Yes, I know I should try Unix/Linux as well, but a quick attempt suggested that the (MinGW g77) Fortran compiler I have installed on my Windows laptop works better on this Fortran code.)

[R] Debugging R/Fortran in Windows

2005-09-08 Thread James Wettenhall
Hi, I'm trying to debug an R interface to a Fortran subroutine from Windows. (Yes, I know I should try Unix/Linux as well, but a quick attempt suggested that the (MinGW g77) Fortran compiler I have installed on my Windows laptop works better on this Fortran code.) I'm trying to follow the

[R] fortran

2005-08-01 Thread javad Ashjari
Dear Friends I am trying to call a fortran subroutine in R, but i can not. How can i use the subroutines in R? Regrads Javad __ [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch

Re: [R] fortran

2005-08-01 Thread Ales Ziberna
See ?dyn.load ?.Fortran and manual Writing R Extensions! Then ask again if you have additional questions! Hope this helps, Ales Ziberna - Original Message - From: javad Ashjari [EMAIL PROTECTED] To: R-help@stat.math.ethz.ch Sent: Monday, August 01, 2005 12:21 PM Subject: [R] fortran

[R] Fortran function name not in load table

2005-07-24 Thread Natalie Hawkins
Using R 2.0.1 on Windows XP, I am getting an error msg: Error in .Fortran(conic, nxy = nxy, npt = npt, CP = cp, EP1 = ep1, EP2 = ep2, : Fortran function name not in load table I am wondering if there is a way to see what function names are in the load table? Maybe the function name

Re: [R] Fortran function name not in load table

2005-07-24 Thread Duncan Murdoch
Natalie Hawkins wrote: Using R 2.0.1 on Windows XP, I am getting an error msg: Error in .Fortran(conic, nxy = nxy, npt = npt, CP = cp, EP1 = ep1, EP2 = ep2, : Fortran function name not in load table I am wondering if there is a way to see what function names are in the load

[R] Fortran compilation error

2005-06-10 Thread Brian Beckage
Hello, I'm trying to install a package that requires a Fortran compiler (Hmisc) using R CMD INSTALL. I downloaded the package source onto my Desktop, unzipped it, and then typed: R CMD INSTALL /Users/brianbeckage/Desktop/Hmisc * Installing *source* package 'Hmisc' ... ** libs g77

[R] Fortran 95 in R ?

2005-05-18 Thread Joel Bremson
Is it possible to run Fortran 95 code from R? I don't think so, but hopefully someone can prove me wrong. Here is the test I tried: A little fortran 95 subroutine: subroutine allloc() real, dimension(:, :), allocatable :: a integer :: n n = 10 allocate(a(n,n+1)) end I then compiled: g95 -c

Re: [R] Fortran 95 in R ?

2005-05-18 Thread Bill Northcott
On 18/05/2005, at 8:10 PM, Joel Bremson wrote: Is it possible to run Fortran 95 code from R? I don't think so, but hopefully someone can prove me wrong. This is not really any issue with R. It is matter of what compilers you have installed. If you have Fortran 95 compiler and you use it to

[R] Fortran dy lib on Solaris

2005-04-28 Thread V Nyirongo
Dear all, Am new on this list but need help: I have a fortran code which I compile into a dynamic library (on Solaris). My probem is that when I call this code soon after starting R, it runs ok. But it doesn't for the second time without exiting R first. In this code I have to generate some

Re: [R] Fortran dy lib on Solaris

2005-04-28 Thread Jin Shusong
On Thu, Apr 28, 2005 at 05:11:11PM +0100, V Nyirongo wrote: Dear all, Am new on this list but need help: I have a fortran code which I compile into a dynamic library (on Solaris). My probem is that when I call this code soon after starting R, it runs ok. But it doesn't for the second

[R] .Fortran() again

2005-04-21 Thread simon chou
Hi, First ,please excuse my poor English. Can someone help me on reading fortran binary object under R? I was trying to read mm5 data under R. However, I seem to stuck at reading fortran binary file storing met. data array. At the beginning, I used readBin() to read mm5 output directly with the

Re: [R] .Fortran() again

2005-04-21 Thread Martin Maechler
things more readable. This leads to r - .Fortran(readmm5, file = as.character(mmout), iflag = as.integer(1), mif = matrix(as.integer(0), nrow=50,ncol=20)) where r is list where r[[mif]] should be your desired matrix. Alternatively

[R] Fortran 90 in R?

2004-08-19 Thread Ben Yip
Hi there, I am using Fortran 77 g77 compiler to write Fortran subprogram to R. I would like to change and write Fortran 90 code instead (no more specification of matrix!). Does gcc support Fortran 90? And if Yes, does it works in R? Ben __ [EMAIL

Re: [R] Fortran 90 in R?

2004-08-19 Thread Prof Brian Ripley
On Thu, 19 Aug 2004, Ben Yip wrote: I am using Fortran 77 g77 compiler to write Fortran subprogram to R. I would like to change and write Fortran 90 code instead (no more specification of matrix!). Does gcc support Fortran 90? Isn't that a question for a gcc-help list? Take a look at

Re: [R] Fortran 90 in R?

2004-08-19 Thread Christian T. Steigies
On Thu, Aug 19, 2004 at 01:50:47PM +0100, Prof Brian Ripley wrote: On Thu, 19 Aug 2004, Ben Yip wrote: I am using Fortran 77 g77 compiler to write Fortran subprogram to R. I would like to change and write Fortran 90 code instead (no more specification of matrix!). Does gcc support

[R] Fortran in R??

2004-06-25 Thread dardiakm
Hello, We have been trying to use a well working Fortran program in R but have been unable to upload it as part of our undergraduate research. We are working with windows 98. We've read all of what we can find, but cannot figure it out. We've tried the dyn.load commands and whatnot. Do

Re: [R] Fortran in R??

2004-06-25 Thread Duncan Murdoch
On Fri, 25 Jun 2004 13:10:51 -0400, [EMAIL PROTECTED] wrote : Hello, We have been trying to use a well working Fortran program in R but have been unable to upload it as part of our undergraduate research. We are working with windows 98. We've read all of what we can find, but cannot figure

Re: [R] Fortran source code

2004-01-27 Thread Prof Brian Ripley
On Tue, 27 Jan 2004 [EMAIL PROTECTED] wrote: After spending 3 long days attempting to interface Fortran with R--having spent 1 week sifting through R-help and the horrific official documentation--I cannot emphasize in words the importance of consulting 1 and-only 1 reference: Venables,

Re: [R] Fortran source code

2004-01-27 Thread DivineSAAM
Dear All, After spending 3 long days attempting to interface Fortran with R--having spent 1 week sifting through R-help and the horrific official documentation--I cannot emphasize in words the importance of consulting 1 and-only 1 reference: Venables, W.N., B.D. Ripley, S Programming.

[R] Fortran source code

2004-01-26 Thread Ka Yee Yeung
Hi, I am wondering if it is possible to view the Fortran source code called by R functions. In particular, I am interested in the leaps.setup function in a package called leaps, which calls Fortran functions ssleaps, initr etc. Any help would be greatly appreciated. Ka Yee Yeung Bioinformatics

Re: [R] Fortran source code

2004-01-26 Thread Peter Dalgaard
Ka Yee Yeung [EMAIL PROTECTED] writes: Hi, I am wondering if it is possible to view the Fortran source code called by R functions. R is Open Source, and so are most of the packages developed for it. Would be a rare case if the source code was not available. In particular, I am

Re: [R] Fortran source code

2004-01-26 Thread Prof Brian Ripley
They are part of the package leaps_2.6.tar.gz on CRAN. Just look at the source package and not (I assume) a binary installation. On Mon, 26 Jan 2004, Ka Yee Yeung wrote: I am wondering if it is possible to view the Fortran source code called by R functions. In particular, I am interested

[R] r: fortran help

2004-01-09 Thread allan clark
Hi all I would like to know if anybody knows of either a good book or web site that explains one how to use Fortran. I would like to call some of the Fortran subroutines but before I can do that I first want to learn how to code in Fortran. Regards Allan

Betr.: [R] r: fortran help

2004-01-09 Thread tobias . verbeke
I would like to know if anybody knows of either a good book or web site that explains one how to use Fortran. I would like to call some of the Fortran subroutines but before I can do that I first want to learn how to code in Fortran. There is a wealth of resources in the fortran faq

Re: [R] r: fortran help

2004-01-09 Thread Mike Prager
At 05:16 AM 1/9/2004, allan clark wrote: I would like to know if anybody knows of either a good book or web site that explains one how to use Fortran. I would like to call some of the Fortran subroutines but before I can do that I first want to learn how to code in Fortran. Interesting question.

[R] Fortran compilation problem

2003-03-30 Thread Philippe Hupé
Hello, I have problem when i am trying to install a package containing fortran source code. I give below the result of installation for one package (I have always the same message : /usr/bin/ld: can not find -lreadline): g77 -mieee-fp -fPIC -g -O2 -c akima.new.f -o akima.new.o g77 -mieee-fp

Re: [R] Fortran compilation problem

2003-03-30 Thread ripley
You have not given us even minimal information (R version, platform, etc). My guess is that you installed R from an RPM, and you do not have (something like) readline-devel installed. However, this is easily fixed by editing R_HOME/etc/Makeconf and removing '-lreadline -ldl -lncurses' from the

Re: [R] Fortran compilation problem

2003-03-30 Thread Philippe Hupé
I have the 1.6.2 version installed on Debian Linux woody (deb packages have been downloading from CRAN) Le Dimanche 30 Mars 2003 20:04, [EMAIL PROTECTED] a écrit : You have not given us even minimal information (R version, platform, etc). My guess is that you installed R from an RPM, and you

Re: [R] Fortran compilation problem

2003-03-30 Thread Dirk Eddelbuettel
On Sun, Mar 30, 2003 at 09:16:56PM +0100, Philippe Hup? wrote: I have the 1.6.2 version installed on Debian Linux woody (deb packages have been downloading from CRAN) Please install r-base-dev, which via its Depends ensures that you get what is required for the most common situations:

Re: [R] Fortran linking problems

2003-01-20 Thread Angel Lopez-Urrutia
PROTECTED] Subject: Re: [R] Fortran linking problems Date: Mon, 20 Jan 2003 07:56:20 + (GMT) Did you build R yourself, or install an rpm? It looks like your installation is missing libreadline, and it was there when R was built. I'm surprised then that R would run, but maybe it is somewhere

[R] .Fortran error

2003-01-17 Thread Rodolfo Espino III
I am running R version (1.6.2-1) on Redhat Linux 8.0. I am unsuccesfully trying to compile Fortran code and then loading the created object into R. The following are the basic commands I have used to do this. #R CMD SHLIB -o file.f #R dyn.load(file.so) In the above command I have been explicit