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
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
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
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),
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 =
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),
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.)
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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,
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.
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
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
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
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
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
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.
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
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
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
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:
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
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
38 matches
Mail list logo