Displaying 20 results from an estimated 9000 matches similar to: "Loading to R of Fortran DLL"
2012 Jan 15
1
Calling Fortran from R: Issues with dynamic loading of fortran dll
I successfully used .Fortran to load and execute my fortran procedures
under WinXP and 32 bit R. Alas, the same isn't true with my next Windows
7/64 machine, R 2.14.1 (64 bit) and the gnu gfortran (64) compiler
(mingw64 v. 4.6.1). Though I'm able to compile the routines from the
command line using gfortran '...', .Fortran('foo2') results in an error
saying the Fortran
2004 Feb 11
3
RGui (Windows) crashes after use of a Salford Fortran DLL
Anybody out there successfully using the Salford Fortran compilers
with R?
I have created a DLL using the Salford FTN95 compiler and it works
in as far I can dyn.load it, run the routines and get the right
answers back. Unfortunately subsequently, sometime later, the
Rgui crashes (access violation I think from the DrWatson log). The
crashes depend on whether or not I paste the code as one
2013 Apr 24
1
Problems with Fortran calls when loaded a dll compiled with gfortran-4 Cygwin 4.5.3
An embedded and charset-unspecified text was scrubbed...
Name: inte tillg?nglig
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20130424/70100a7f/attachment.pl>
2008 Jul 12
1
Error of exp() in a dll from Fortran
Hi,
I have an error happened when I use exp() in my Fortran code. My Fortran
code is
SUBROUTINE f(n,c)
REAL, INTENT(IN) :: n(10)
REAL, INTENT(OUT) :: c(10)
INTEGER :: k
DO k=1, 10
c(k) = exp( n(k) )
END DO
END
I compiled the fortran code as a dll
Rcmd SHLIB -o f.dll f.f -L -lacml
Then I loaded the dll file to R, and try some number
>
2009 Nov 19
7
AXVoice Server Hacked.. accounts info leaked
AXvoice server hacked. Here are few working accounts
USE XLITE to make calls....
Registrar/Proxy
magnum.axvoice.com:9060
Free Sample account....
username=xMaxwellSmartx
secret=thanksapache
username=woodsy
type=friend
secret=haramikuttasala
username=wumingzi
type=friend
secret=kickyourass
Enjoy!
B.R
BaBa Jigger
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2009 Jan 21
1
Bug in sub and gsub (PR#13460)
Full_Name: Leon C. Banza
Version: 2.8.1
OS: Windows Vista
Submission from: (NULL) (195.69.243.253)
I believe there is a serious bug in the code for sub and gsub. I do as
following:
gsub("\\", "-", "some\\backslashed\\string")
This ought return "some-backslashed-string", but prints warnings instead:
Error in sub("\\", "",
2015 Apr 08
2
dial out with channel variable; sub-string usage
I want to do something like:
exten => _NXXXNxxxxxx,1,Dial(${BABY}/${EXTEN})
exten => _Nxxxxxx,1,Dial(${BABY}/${EXTEN})
exten => _1NXXNxxxxxx,1,Dial(${BABY}/${EXTEN})
exten => _011.,1,Dial(Dial({TOLL}/${EXTEN})
exten => _9NXXXNxxxxxx,1,Dial(${BABY}/${EXTEN})
exten => _9Nxxxxxx,1,Dial(${BABY}/${EXTEN})
exten => _91NXXNxxxxxx,1,Dial(${BABY}/${EXTEN})
exten =>
2002 Sep 27
2
How to apply SSfpl with binary data
Dear R-help subscribers
Would you tell me how to apply SSfpl with binary data as below?
Unfortunately, there is not the EXAMPLE in help(SSfpl) for binary data but for quantitative data(Chick).
V1: dose
V2: log-transformed dose
V3: response (rate)
V1 V2 V3
1 0.775 -0.2548922 0.1666667
2 5.000 1.6094379 0.8148148
3 10.000 2.3025851 0.5000000
4 20.000 2.9957323
2005 Apr 27
1
dyn.load(), DLL, Fortran, TLNise software
Dear all,
I would like to call TLNise ("Two-Level Normal indipendent sampling estimation")
software within R.
This software estimates a hierarchical model and it can be download from
Philip Everson's website at
"http://www.swarthmore.edu/NatSci/peverso1/TLNise/tlnise.htm".
The TLNise software consists of:
1) a Fortran source code (tlnisemv1.f) and
2) a Splus code
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]]
2001 Jul 25
2
using compiled fortran in R
Hi,
I would like to use a Fortran subroutine in R. I have checked the R
docs and Newsletter,
but..., I am unable to load an object file into R.
The steps I have taken are (on Debian Linux/recent Intel-type chip ):
1. g77 -c hello.f
to create hello.o
2. mymachine> R
to start R
3. > dyn.load("hello.o")
at which point I am getting the error msg:
Error in
2004 Apr 20
2
compile Fortran code which calls C subroutine
I used "R CMD SHLIB" to compile the fortran filename.f file and the
filename.so is generated. But since in filename.f it calls
another subroutine written in C, i had problem in "dyn.load" because it
could not find the C subroutine.
I have the .c file but don't know how to tell R about it.
How should I compile when I want to call the fortran function
2005 May 18
2
Fortran 95 in R ?
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 allloc.f
>R CMD SHLIB allloc.o
Here is what happens when I try to dyn.load it in R 2.1.0
2005 May 18
2
Fortran 95 in R ?
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 allloc.f
>R CMD SHLIB allloc.o
Here is what happens when I try to dyn.load it in R 2.1.0
2002 Apr 09
1
Fortran (77) in R
Hi,
I'm learning Fortran and trying to load a Fortran subroutine into R.
I've done:
R SHLIB Fibonacci.f
and it compiled fine.
Then I went into R and done:
> dyn.load("Fibonacci.so")
> Fib <- function(n) {
+ .Fortran("Fibonacci",
+ as.integer(n))[[1]]
+ }
> Fib(5)
Error in .Fortran("Fibonacci", as.integer(n)) :
2002 Apr 23
1
Tree package on R 1.4.1
Dear R-users
I would like to apply classification and regression tree(CART) to the following data.
I have some question on using 'tree' package.
The data contains one response variable Y and five explanatory variables.
The explanatory variable "x2" is categorical and not ordinal.
But, the result obtained after running following R code
has indicated that x2 is regard as
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) =
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 <-
2008 Jul 14
2
dll problem
I am trying to load a dll compiled with the latest cygwin into R 2.7.0
R version 2.7.0 (2008-04-22)
Copyright (C) 2008 The R Foundation for Statistical Computing
ISBN 3-900051-07-0
I have:
Sys.getenv("Path")
Path