[Rd] requesting a mentor for R development

From: Paul Johnson <pauljohn32_at_gmail.com>
Date: Mon, 20 Jun 2011 11:30:20 -0500


I'd like to learn the process of revising R functions & packages and then submitting proposed patches to the R Core team. Would someone be willing to mentor me through one example?

For starters, consider an example. I'd like to revise the t.test function to return the stderr value to the user. We only need to change the "rval" in the third-from-the end line of stats:::t.test.default.

Change this:

 rval <- list(statistic = tstat, parameter = df, p.value = pval,

        conf.int = cint, estimate = estimate, null.value = mu,
        alternative = alternative, method = method, data.name = dname)
    class(rval) <- "htest"
    return(rval)

To this:

 rval <- list(statistic = tstat, parameter = df, stderr=stderr, p.value = pval,

        conf.int = cint, estimate = estimate, null.value = mu,
        alternative = alternative, method = method, data.name = dname)
    class(rval) <- "htest"
    return(rval)

Here is where I need help.

  1. What other changes in the R code & documents would be required for consistency?
  2. How does R Core Team expect/accept patches? I do understand a bit about SVN and CVS. I think I could mark this up and make a diff, but I'm uncertain about the details.
  3. How would I best prepare a suggestion like this so as to get it accepted into R?

If somebody will raise a hand, I'm willing to do the work to learn.

pj

-- 
Paul E. Johnson
Professor, Political Science
1541 Lilac Lane, Room 504
University of Kansas

______________________________________________
R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Mon 20 Jun 2011 - 16:52:05 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

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 Tue 21 Jun 2011 - 15:00:22 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