From jgrn at illinois.edu  Mon Jun 10 18:23:56 2013
From: jgrn at illinois.edu (Jonathan Greenberg)
Date: Mon, 10 Jun 2013 11:23:56 -0500
Subject: [Rd] Policy/best practices on renaming functions in packages
Message-ID: <CABG0rfv+9YTujngdCH-b11iouX+VnJtXjFWue2d083TXrKY3GQ@mail.gmail.com>

R-developers:

I'm beginning to work on a manuscript for a set of functions I
developed for a package I have on CRAN (spatial.tools), and I'd like
to rename a function in my package to give a better idea of what it
does prior to manuscript submission -- is there a "safe" way to do a
backwards-compatible rename of a function within a CRAN package (so
functions that rely on the original name aren't broken)?  Is it as
simple as:

new_name <- old_name <- function(yadda)
{

}

In general, I'd just leave it as is, but the old name of the function
was a reference to an existing function in another package that it no
longer has any resemblance to.

Thanks!

--j

--
Jonathan A. Greenberg, PhD
Assistant Professor
Global Environmental Analysis and Remote Sensing (GEARS) Laboratory
Department of Geography and Geographic Information Science
University of Illinois at Urbana-Champaign
607 South Mathews Avenue, MC 150
Urbana, IL 61801
Phone: 217-300-1924
http://www.geog.illinois.edu/~jgrn/
AIM: jgrn307, MSN: jgrn307 at hotmail.com, Gchat: jgrn307, Skype: jgrn3007



[Rd] Policy/best practices on renaming functions in packages
Jonathan Greenberg