[Rd] switching to an previous R engine?

From: Thorpe, Jason D <jthorpe_at_fhcrc.org>
Date: Thu, 11 Mar 2010 09:14:03 -0800


I have quite a few programs that I have written over the last 5 years that rely on the old R engine (2.6.2 and earlier) returning a null when an invalid index is used, as in:  

> df <- data.frame(x = 1)

> df[,'y']

NULL   Is there a way to tell R to return NULLs instead of raising errors within a function or package? I'm a fan of the raising errors instead of returning values that could be confused with a legitimate return value, but for now I'm stuck using 2.6.2 until I have time to check every line of code I've written in the last 5 years.  


Jason Thorpe

        [[alternative HTML version deleted]]

R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Fri 12 Mar 2010 - 09:33:09 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 12 Mar 2010 - 18:41:02 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive