On 06/05/2011 11:04 AM, Paul Gilbert wrote:
Is it possible in R to call a fortran routine that sets variables in a common
block and expect the values to persist when a call is made from R to a second
routine that uses the common block?
I think the stats package does this; see src/library/stats/src/ppr.f.
The Fortran functions don't "know" that R is doing the calling, so
they'll set and read values as if they were called from a Fortran main
program.
Duncan Murdoch
If not (as I suspect), is it possible to use a common block in a group of
routines that are used together, for as long the routines do not return to R?
Paul
====================================================================================
La version française suit le texte anglais.
------------------------------------------------------------------------------------
This email may contain privileged and/or confidential information, and the Bank
of
Canada does not waive any related rights. Any distribution, use, or copying of
this
email or the information it contains by other than the intended recipient is
unauthorized. If you received this email in error please delete it immediately
from
your system and notify the sender promptly by email that you have done so.
------------------------------------------------------------------------------------
Le présent courriel peut contenir de l'information privilégiée ou
confidentielle.
La Banque du Canada ne renonce pas aux droits qui s'y rapportent. Toute
diffusion,
utilisation ou copie de ce courriel ou des renseignements qu'il contient par une
personne autre que le ou les destinataires désignés est interdite. Si vous
recevez
ce courriel par erreur, veuillez le supprimer immédiatement et envoyer sans délai Ã
l'expéditeur un message électronique pour l'aviser que vous avez éliminé de votre
ordinateur toute copie du courriel reçu.
[[alternative HTML version deleted]]
______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel