From ripley at stats.ox.ac.uk  Wed Jul 21 15:11:00 2010
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Wed, 21 Jul 2010 14:11:00 +0100 (BST)
Subject: [Rd]
	=?iso-8859-7?q?=22Use_of_=A1=2EC=A2_for_C++_is_now_deprecate?=
	=?iso-8859-7?q?d_and_will_be_removed_in_R_2=2E12=2E0=22?=
In-Reply-To: <AANLkTimReZHcXn2gNcX8A2rCIcQKVmQD49krAt9Cp0EO@mail.gmail.com>
References: <AANLkTimReZHcXn2gNcX8A2rCIcQKVmQD49krAt9Cp0EO@mail.gmail.com>
Message-ID: <alpine.LFD.2.00.1007211403130.12833@gannet.stats.ox.ac.uk>

Please don't pick things out of context.  It does not say .C() is 
deprecated and it is not talking about R code: it says

There are default variables and rules for this (determined when R is 
configured and recorded in R_HOME/etcR_ARCH/Makeconf), providing 
support for C, C++, FORTRAN 77, Fortran 9x, Objective C and Objective 
C++ with associated extensions .c, .cc  or .cpp, .f, .f90 or .f95, 
.m, and .mm or .M, respectively. We recommend using .h  for headers, 
also for C++ or Fortran 9x include files. (Use of .C for C++ is now 
deprecated and will be removed in R 2.12.0.)

You missed 'associated extensions', and that the NEWS file says

     o	Use of file extension .C for C++ code in packages is now
 	deprecated: it has caused problems for some 'make's on
 	case-insensitive file systems (although it currently works
 	with the recommended toolkits).


On Wed, 21 Jul 2010, Florian Breitwieser wrote:

> Hi,
>
> I am writing a R package and having a bit of trouble to have the C++
> code working.
>
> I was planing using the .C interface function, however I found the
> comment (Use of ?.C? for C++ is now deprecated and will be removed in
> R 2.12.0.) in the R-exts manual.
>
> So this interface function should not be used anymore - .Call() or
> Rcpp instead? What is the reason for the deprecation?
>
> Thanks,
> Florian
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595


[Rd] =?iso-8859-7?q?=22Use_of_=A1=2EC=A2_for_C++_is_now_deprecate?= =?iso-8859-7?q?d_and_will_be_removed_in_R_2=2E12=2E0=22?=
Prof Brian Ripley