Re: [Rd] fortan common block

2011-05-09 Thread Paul Gilbert
011 11:48 AM > To: Paul Gilbert > Cc: r-devel@r-project. org > Subject: Re: [Rd] fortan common block > > AFAIK it's all much simpler that you think. Technically common blocks > are just FORTRAN's slightly complicated way to declare and access > global variables.

Re: [Rd] fortan common block

2011-05-09 Thread Simon Urbanek
ide of my expertise, so assurances would be greatly > appreciated. > > Paul > >> -Original Message- >> From: b.rowling...@googlemail.com [mailto:b.rowling...@googlemail.com] >> On Behalf Of Barry Rowlingson >> Sent: May 8, 2011 3:44 AM >> To: Paul Gilb

Re: [Rd] fortan common block

2011-05-09 Thread Paul Gilbert
2011 3:44 AM > To: Paul Gilbert > Cc: r-devel@r-project. org > Subject: Re: [Rd] fortan common block > > On Fri, May 6, 2011 at 4:04 PM, Paul Gilbert > wrote: > > Is it possible in R to call a fortran routine that sets variables in > a common block and expect the values

Re: [Rd] fortan common block

2011-05-08 Thread Barry Rowlingson
On Fri, May 6, 2011 at 4:04 PM, 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? > > If not (as I suspect),  is it possible to

Re: [Rd] fortan common block

2011-05-07 Thread Sharpie
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? > > If not (as I suspect), is it possible to use a common block in a group

Re: [Rd] fortan common block

2011-05-06 Thread Duncan Murdoch
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/stat

[Rd] fortan common block

2011-05-06 Thread Paul Gilbert
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? If not (as I suspect), is it possible to use a common block in a group of routines that are used toget