Josh O'Brien
2012-Oct-02 21:17 UTC
[Rd] Minor edit to R-ints doc will be needed for R-2.15.2: axis() no longer uses .Internal()
Hello, The second paragraph of Chapter 2: .Internal vs .Primitive of R-ints uses axis() as an example of a function that uses .Internal(). Here's the quote:> Functions using .Internal() wrapped in a closure are in general preferred as this ensures > standard handling of named and default arguments. For example, axis is defined as > > axis <- function(side, at = NULL, labels = NULL, ...) > .Internal(axis(side, at, labels, ...))As of R-2.15.2, though, this will no longer be true; as noted in the Code Migration section of R-devel NEWS file:> The C code underlying base graphics has been migrated to the graphics package > (and hence no longer uses .Internal() calls).So, a different example may be needed. (Please let me know if a message of this type is better directed somewhere else, or if it should wait until after some milestone in the development cycle.) Thanks, Josh
Prof Brian Ripley
2012-Oct-03 06:33 UTC
[Rd] Minor edit to R-ints doc will be needed for R-2.15.2: axis() no longer uses .Internal()
On 02/10/2012 22:17, Josh O'Brien wrote:> Hello, > > The second paragraph of Chapter 2: .Internal vs .Primitive of R-ints > uses axis() as an example of a function that uses .Internal(). Here's > the quote: > >> Functions using .Internal() wrapped in a closure are in general preferred as this ensures >> standard handling of named and default arguments. For example, axis is defined as >> >> axis <- function(side, at = NULL, labels = NULL, ...) >> .Internal(axis(side, at, labels, ...)) > > As of R-2.15.2, though, this will no longer be true; as noted in the > Code Migration section of R-devel NEWS file: > >> The C code underlying base graphics has been migrated to the graphics package >> (and hence no longer uses .Internal() calls). > > So, a different example may be needed.Not for 2.15.2 (which is not even mentioned in that file but will include the changes for 2.15.1 patched): that section of NEWS is about R-devel.> (Please let me know if a message of this type is better directed > somewhere else, or if it should wait until after some milestone in the > development cycle.)Yes, when R 2.16.0 is in its alpha/beta test period. You are commenting on a change (code migration) that is still in progress. Manuals are reviewed once a R 2.x.0 version goes into feature-freeze.> > Thanks, > > Josh > > ______________________________________________ > 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
Maybe Matching Threads
- How best to get around shadowing of executables by system()'s prepending of directories to Windows' PATH?
- Why does typeof() modify an object's "named" field?
- Active Directory authentication no longer works
- Minor issue in code of 'diffinv.vector' in R 2.15.2
- [PATCH] minor suggestions for R-ints manual