Displaying 20 results from an estimated 7000 matches similar to: "compile Fortran code which calls C subroutine"
2007 Aug 20
1
system() fails with fc.exe (PR#9868)
Full_Name: Jens Oehlschl?gel
Version: 2.5.1
OS: Windows
Submission from: (NULL) (62.159.183.42)
Even when specifying the full path, the output of fc is not sent to R (neither
shown nor returned). For example
> system('c:\\WINDOWS\\system32\\fc.exe /?',intern=TRUE)
character(0)
When I do the same from python 2.3, I get
>>> import os
>>>
2008 Mar 28
1
Problem redirecting output stream of wine
Hi all,
I'm using an Ubuntu 7.10 and the latest (?) version of Wine ( 0.9.58 ).
I'm running a windows application that seems to work properly, but i cannot manage to redirect the output to a file:
$ wine cmd.exe
Usage : cmd.exe [filename1] [filename2] ...
$ wine cmd.exe > /dev/null
Usage : cmd.exe [filename1] [filename2] ...
$ wine cmd.exe 2> /dev/null
Usage : cmd.exe [filename1]
2010 Oct 25
2
R-Fortran question (multiple subroutines)
Dear R-helpers,
apologies if this is somewhere in a manual, I have not been able to
find anything relevant. I run Windows Vista.
I have some Fortran code in a subroutine, and have no problem calling
this from R with .Fortran, compiling the code either with 'R CMD
SHLIB' or independently with gfortran.
But is it possible to have more than one subroutine in my source file,
one depending
2009 Jan 13
2
Using fortran code which call LAPACK subroutines
Hello
I'm trying to run a fortran code which use LAPACK subroutines. I think I
should use some points shown in the manual 5.5 Creating shared objects
but it is too technical for me :-(... Could anyone help me for the
procedure to do:
-which part of the manual is relevant for this type of question?
actually I'm speaking from writing R extensions, should I read R admin?
-point 1.2
2007 Jun 12
1
Building packages with subroutine in fortran 90 under windows xp
Hello,
I work under windows xp and I am trying to build a R package with a subroutine written in fortran 90.
I have installed all the updated tools and I am working with R-2.4.0 or R-2.5.0.
When I check a package with a subroutine in fortran 77 (and extension f) everything is ok.
When I try to build the same package with a subroutine in fortran 90 (with extension f90) the following warning
2010 Mar 16
2
Help running a Fortran subroutine from R
useR's,
I need help getting a Fortran DLL successfully returning the correct output.
The attached fortran source code (filter2d.f) and DLL (filter2d.dll) are
attached. Also, I attached a text file for which I want to apply the filter
to (time702.txt).
Here is what I am doing...
> dyn.load("C:/f/NEW/filter2d.dll")
> is.loaded("filter2d")
[1] TRUE
Then I pass the
2003 Sep 18
2
bad hardlinks with rsync
Hi List
I've experienced some problems with rsync. I'm backuping a complete
machine's rootdirectory. After completion I see in the log of the
output, that rsync links some files which are surely *not* the same
on the source System. Or well, it says, that it makes links, using
the filename1 => filename2 notation. On the source System this files
are not the same and some files are
2001 Oct 01
1
Graceful exit from fortran.
Is there a way to exit gracefully from dynamically loaded Fortran,
(several layers down), if an error condition is detected?
I.e. suppose I'm within a subroutine called by a subroutine, ...,
called by .Fortran(); I want to give up gracefully if an error
condition is detected.
If I say something like
if(x .gt. 42.d0) stop
then indeed everything stops, i.e. R falls over. I'd
2000 Nov 09
1
file processing with a FORTRAN subroutine
Dear all,
Is it possible to call a FORTRAN subroutine which does
file processing (open an input and write to an output file)
using the .Fortran command.
FYI, I am using R 1.1.1 for windows,
Thanks,
Agus
Agus Salim
PhD student
Dept. of Statistics
University College Cork
Ireland
Tel:353-21-4902197
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing
2009 Apr 15
1
Compiling Fortran Subroutines as R Shared Objects on Mac OS-X
Hello,
I am trying to compile some F77 subroutines as shared objects for R on my Mac.
--> Mac OS-X Version 10.4.11 (Tiger Intel Mac)
I have done this (successfully) before on Sun Solaris and Linux Fedora systems using the following command.
> R CMD SHLIB myfile.f
I have g77 installed from this page.
http://hpc.sourceforge.net/
I am using R 2.8.1, and I have installed all 4 additional
2010 Sep 10
8
convert "1", "10", and "100" to "0001", "0010", "0100" etc.
Hi,
Is there an easy way to convert numbers into a form such
that they all have the same number of digits?
e.g.:
"1", "10", and "100"
...become...
"0001", "0010", "0100" etc.
I ask because I am producing a large number of files that
need to sort consistently by filename. Currently I get this
kind of sorting:
filename1
filename10
2008 Aug 18
2
Call a Fortran subroutine with R: R crashes
Hello,
I am trying to call a FORTRAN subroutine within R and something really
strange happens:
I have a dll-library, that I load with dyn.load('mpbvv.dll'). I have checked
the [Ordinal/Name Pointer] Table for the function within the library that I
want to call - it is there (objdump - p mpbvv.dll).
Then, I have written an R-wrapper to call the FORTRAN subroutine, which
works fine. SInce
2010 Jun 18
3
Use of .Fortran
I have no experience with incorporating Fortran code and am probably
doing something pretty stupid.
I want to use the following Fortran subroutine (not written by me) in
the file SSFcoef.f
subroutine SSFcoef(nmax,nu,A,nrowA,ncolA)
implicit double precision(a-h,o-z)
implicit integer (i-n)
integer l,i,nmax
double precision nu,A(0:nmax,0:nmax)
A(0,0) =
2010 Jun 18
3
Use of .Fortran
I have no experience with incorporating Fortran code and am probably
doing something pretty stupid.
I want to use the following Fortran subroutine (not written by me) in
the file SSFcoef.f
subroutine SSFcoef(nmax,nu,A,nrowA,ncolA)
implicit double precision(a-h,o-z)
implicit integer (i-n)
integer l,i,nmax
double precision nu,A(0:nmax,0:nmax)
A(0,0) =
2007 Oct 15
1
The "condition has length > 1" issue for lists
I have the following code:
list1 <- list()
for (i in list.files(pattern="filename1")){
x <- read.table(i)
list1[[i]] <- x
}
list2 <- list()
for (i in list.files(pattern="filename2*")){
x <- read.table(i)
list2[[i]] <- x
}
anslist <- vector('list', length(list1))
for(i in 1:length(list1))
if (list1[[i]] & list2[[i]] >1)
2016 Mar 04
3
ALLOCATE in a FORTRAN subroutine
Hi,
I am a FORTRAN developer and I am 'translating' R functions in FORTRAN subroutines. I am 'new' to R. It's my first question in this mailing-list and English is not my natural language.
Very often, an R function gives an 'array' as result and you don't have to bother with the dimension of the array : R creates automatically an array with the good length.
2009 Jun 01
2
Calling Fortran from C++
Hi,
can anybody point me to a package with C++ code that call Fortran
subroutines?
I am trying to do the same thing but we scarce success.
Error in dyn.load("utils.so") :
unable to load shared library 'utils.so':
dlopen(utils.so, 6): Symbol not found: _robcovf
Referenced from: utils.so
Expected in: dynamic lookup
[[alternative HTML version deleted]]
2008 Jul 17
2
Passing array to the email body using ActionMailer
Hi, all
I am new to actionmailer. I am writing a script that sends emails
contains lots of file names.
So the email will look like:
hi,
filename1
filename2
filename3
.
.
.
filenameN
So I want to pass an array containing all the filenames into the email
body.
My code is below:
class Notifier < ActionMailer::Base
def log_report(recipient, files)
from
2009 Aug 12
2
Problem with function in fortran 95
I am writing a function in fortran 95, but the intrinsic function MATMUL is not working properly. Here's an example.
SUBROUTINE mymult(x,y,res,m,n)
IMPLICIT NONE
INTEGER :: m,n
REAL :: x, y, res
DIMENSION :: x(m,n), y(n,m), res(m,m)
res = MATMUL(x,y)
END SUBROUTINE mymult
R CMD SHLIB mat.f95
In R:
dyn.load("mat.so")
x <-
2002 Oct 26
2
Fortran
Hello everybody,
Could someone please send me a very simple example using Fortran from
R? Say pass a value to an executable and get the result in R. Actually it
seems it may be possible to call an *.f file ?? or I am wrong again?
The manual is very terse on the subject.
Thank you very much
Stephen Elijah
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help