[R] R and Fortran
Derrick Lee
d.lee at stat.ubc.ca
Wed Jun 11 22:21:12 CEST 2008
Hi Erin,
Unfortunately no, its not named "chol", I know about the cholesky
decomposition in R, I was just testing out a more complex subroutine as
the subroutine I intend to use gets similar errors. Thanks for the
insight, though. Cheers.
- Derrick
Erin Hodgess wrote:
> Hi Derrick!
>
> Is your subroutine named "chol"?
>
> There is a function in R by the name of chol.
>
> You might be having a problem with that.
>
> thanks,
> Erin
>
>
> On Wed, Jun 11, 2008 at 2:39 PM, Derrick Lee <d.lee at stat.ubc.ca> wrote:
>
>> Dear Fellow R-Users,
>>
>> I am having some difficulties loading a Fortran subroutine into R and
>> wondering if anyone could lend me some insight to this problem. When I load
>> some simpler Fortran codes into R, it loads fine, but when I load more
>> complex codes I get the following error:
>>
>> Error in dyn.load(x, as.logical(local), as.logical(now)) :
>> unable to load shared library
>> "/nfs/home/grad/d.lee/Testing/chol.o":
>> ld.so.1: R: fatal: relocation error: file
>> /nfs/home/grad/d.lee/Testing/chol.o: symbol s_wsle: referenced symbol not
>> found
>>
>> From what I have gathered, it appears to be a problem when with linking the
>> library to the Fortran system library, but I am unsure how to deal with
>> this. The current 32-bit machine that runs R is:
>>
>> platform sparc-sun-solaris2.8
>> arch sparc
>> os solaris2.8
>> system sparc, solaris2.8
>> status
>> major 2
>> minor 0.1
>> year 2004
>> month 11
>> day 15
>> language R
>>
>> Any help to this query would be very much appreciated. Cheers.
>>
>>
>> Sincerely
>>
>> - Derrick
>>
>>
>> Derrick Lee, MSc Candidate
>> Department of Statistics
>> The University of British Columbia
>> LSK-314A | 604 - 822 - 1299 x532
>> d.lee at stat dot ubc dot ca | dgylee at mun dot ca
>> www.stat.ubc.ca/~d.lee/ | www.math.mun.ca/~derrick0/
>>
>> ______________________________________________
>> R-help at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
>>
>>
>
>
>
>
--
Sincerely
- Derrick
Derrick Lee, MSc Candidate
Department of Statistics
The University of British Columbia
LSK-314A | 604 - 822 - 1299 x532
d.lee at stat dot ubc dot ca | dgylee at mun dot ca
www.stat.ubc.ca/~d.lee/ | www.math.mun.ca/~derrick0/
More information about the R-help
mailing list