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. It's not really the case with FORTRAN. I call FORTRAN 
subroutines with .fortran().

Until now, I create an array with the 'max' dimensions in R, give it to 
FORTRAN; FORTRAN updates the array and R retrieves it. But calculating the 
'max' before calling the FORTRAN subroutine can be complicated. Is it possible 
to create a 'new' array in a FORTRAN subroutine and to make it be read by R ?

Or is it possible to have a 'pointer' in R, to give it to the FORTRAN 
subroutine where an ALLOCATE can create the array and then R works with the 
array ?
The other solution, is to work with dummies dimension in FORTRAN (REAL*8 
array1(*)) but can R work with that ?

TIA
Jean



Ce message et toutes les pièces jointes (ci-après le 'Message') sont établis à 
l'intention exclusive des destinataires et les informations qui y figurent sont 
strictement confidentielles. Toute utilisation de ce Message non conforme à sa 
destination, toute diffusion ou toute publication totale ou partielle, est 
interdite sauf autorisation expresse.

Si vous n'êtes pas le destinataire de ce Message, il vous est interdit de le 
copier, de le faire suivre, de le divulguer ou d'en utiliser tout ou partie. Si 
vous avez reçu ce Message par erreur, merci de le supprimer de votre système, 
ainsi que toutes ses copies, et de n'en garder aucune trace sur quelque support 
que ce soit. Nous vous remercions également d'en avertir immédiatement 
l'expéditeur par retour du message.

Il est impossible de garantir que les communications par messagerie 
électronique arrivent en temps utile, sont sécurisées ou dénuées de toute 
erreur ou virus.
____________________________________________________

This message and any attachments (the 'Message') are intended solely for the 
addressees. The information contained in this Message is confidential. Any use 
of information contained in this Message not in accord with its purpose, any 
dissemination or disclosure, either whole or partial, is prohibited except 
formal approval.

If you are not the addressee, you may not copy, forward, disclose or use any 
part of it. If you have received this message in error, please delete it and 
all copies from your system and notify the sender immediately by return message.

E-mail communication cannot be guaranteed to be timely secure, error or 
virus-free.
______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel

Reply via email to