[R] Building R from source

Uwe Ligges ligges at statistik.tu-dortmund.de
Thu Feb 18 19:50:23 CET 2010


On 17.02.2010 15:38, rkevinburton at charter.net wrote:
> Thank you for the tip. I was used to inserting write statements and was surpised when it didn't work and reading this section I see that I shouldn't have been doing this anyway.
>
> One more question. Is there another call that I can use to print out a 2-dimensional array? Since FORTRAN stores as column major it is hard to print out an array by row as 'R' does. Also it doesn't mention how to not specify the data to be printed out so that just the label is printed. It (the manual) just says it is possible.


No idea, to be honest: I never did that from Fortran if I have R. I 
would always pass back to R and print from R since in most cases the 
user probably want to have the printed data in R anyway in the end.

Best,
Uwe


> Thanks again.
>
> Kevin
>
> ---- Uwe Ligges<ligges at statistik.tu-dortmund.de>  wrote:
>> Since no more information is given:
>> See Writing R Extensions, currently section 6.5: "Printing" and 6.5.1
>> "Printing from FORTRAN"
>>
>>
>> Uwe Ligges
>>
>>
>>
>> On 17.02.2010 03:50, rkevinburton at charter.net wrote:
>>> I found the problem but not a solution. It turns out if I add the following lines to dqrdc2.f I get the error:
>>>
>>>             write(*,300) ldx,n,p
>>>     300 format(3i4)
>>>
>>> I don't get a compile error but I get the seemingly unrelated error in linking R.DLL
>>> I guess the question now is, "How do I add a simple print statement?". Or, what is wrong with the above print statement?
>>>
>>> Thank you.
>>>
>>> Kevin
>>>
>>> ______________________________________________
>>> 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.
>



More information about the R-help mailing list