Skip to content
Prev 305286 / 398506 Next

.NAME in .Fortran

On 11/09/2012 13:09, Duncan Murdoch wrote:
Actually, an incorrect check got re-activated by 2.15.1.  NEWS for 
R-devel says

     ? The functions .C(), .Call(), .External() and .Fortran() now check
       that they are called with an unnamed first argument: the formal
       arguments were changed from name= to .NAME= in R 2.13.0, but some
       packages were still using the old name.
Actually the CRAN message explicitly asked Master Dunn to use an unnamed 
first argument ....

Or even follow the advice of the ?.Fortran help page in R-patched/R-devel:

      These functions are all primitive, and ?.NAME? is always matched
      to the first argument supplied (which should not be named).  The
      other named arguments follow ?...? and so cannot be abbreviated.

The reason for that advice is that only unnamed first arguments will 
work for all recent versions of R.

As the posting guide says

'f you are using an old version of R and think it does not work 
properly, upgrade to the latest version and try that, before posting. If 
possible, try the current R-patched or R-devel version of R (see the FAQ 
for details), to see if the problem has already been addressed.'