Re: [Rd] ALLOCATE in a FORTRAN subroutine

2016-03-08 Thread MAURICE Jean - externe
>> You can call (some) R functionality from C > You can call *all* R functionality from C. I'll dig that (I mean I'll read more in the help to be sure) > FWIW it's not related to OLE which is IPC and much more limited It was an example of what I was trying to say with "driving R from within FORTR

Re: [Rd] ALLOCATE in a FORTRAN subroutine

2016-03-08 Thread Simon Urbanek
On Mar 8, 2016, at 6:57 AM, MAURICE Jean - externe wrote: >> You can call (some) R functionality from C > When I read about 'R api' I thought that we could call all the functionality > of R. I think that in the windows world, this is called OLE automation. From > a pure programmer point of vi

Re: [Rd] ALLOCATE in a FORTRAN subroutine

2016-03-08 Thread MAURICE Jean - externe
> You can call (some) R functionality from C When I read about 'R api' I thought that we could call all the functionality of R. I think that in the windows world, this is called OLE automation. From a pure programmer point of view, it is very convenient and my customer is creating a team of prog

Re: [Rd] ALLOCATE in a FORTRAN subroutine

2016-03-07 Thread Berend Hasselman
> On 7 Mar 2016, at 18:55, Berend Hasselman wrote: > >> >> On 7 Mar 2016, at 16:45, MAURICE Jean - externe >> wrote: >> >> Hi Martyn, >> >> Many thanks for your answer. If I make it short : >> we can, once we know how to do it, 'drive' R from within FORTRAN for example >> to do a >> Myar

Re: [Rd] ALLOCATE in a FORTRAN subroutine

2016-03-07 Thread Berend Hasselman
> On 7 Mar 2016, at 16:45, MAURICE Jean - externe > wrote: > > Hi Martyn, > > Many thanks for your answer. If I make it short : > we can, once we know how to do it, 'drive' R from within FORTRAN for example > to do a > Myarray = seq(0, mydimension) > in R once we have compute mydimension

Re: [Rd] ALLOCATE in a FORTRAN subroutine

2016-03-07 Thread Martyn Byng
Hi, "we can, once we know how to do it, 'drive' R from within FORTRAN" I am not sure I understand what you mean by this ... You can call routines written in Fortran or C from within R - how easy this is depends on the interfaces to those routines. You can call (some) R functionality from C (see

Re: [Rd] ALLOCATE in a FORTRAN subroutine

2016-03-07 Thread MAURICE Jean - externe
Hi Martyn, Many thanks for your answer. If I make it short : we can, once we know how to do it, 'drive' R from within FORTRAN for example to do a Myarray = seq(0, mydimension) in R once we have compute mydimension in FORTRAN. Is that correct ? If yes : it's too 'complicated' for the time I a

Re: [Rd] ALLOCATE in a FORTRAN subroutine

2016-03-04 Thread Martyn Byng
Of MAURICE Jean - externe Sent: 04 March 2016 08:34 To: r-devel@r-project.org Subject: [Rd] 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-li

Re: [Rd] ALLOCATE in a FORTRAN subroutine

2016-03-04 Thread Duncan Murdoch
On 04/03/2016 3:34 AM, MAURICE Jean - externe wrote: 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 resul

[Rd] ALLOCATE in a FORTRAN subroutine

2016-03-04 Thread MAURICE Jean - externe
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 t