Re: [Rd] ftable.formula

2012-01-26 Thread Timothy Bates
At least this is correct :-) ftable(UCBAdmissions, Dept ~ Gender + Admit) But yes: the formula ftable(UCBAdmissions, Gender + Admit ~ Dept) should see "The left and right hand side of formula specify the column and row variables, respectively" # demo of right-hand side bug ftable(UCBAdmissio

[Rd] use() might take a list of packages

2011-11-11 Thread Timothy Bates
I heard that a function called use() had been mooted as being more intuitively named than library() If so, it might be handy if this worked use(c("MASS","car”)) currently this fails… library(c("MASS","car")) __ R-devel@r-project.org mailing list http

Re: [Rd] Error message library()

2011-10-27 Thread Timothy Bates
I agree: much nicer to say what went wrong than to say "there is no package" And many people will not know what R's paths are. Why not add in a hint about what to do, like: "try running install.packages("xyz") " t > ggrothendieck > Many beginners are advanced but just don't know R. Its bett

[Rd] names Rd see Also{slotNames}

2011-09-22 Thread Timothy Bates
Would anyone object to a suggestion that the names.Rd file could usefully point to seeAlso{slotNames}? cheers, tim -- The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. __ R-devel@r-project.org

Re: [Rd] R CMD INSTALL configure.args and CC customization

2011-09-12 Thread Timothy Bates
Hi Michael, That change seems like a good saving for maintainers: cuts 281 lines in the Rmpi package configure.ac file down to just 2 lines in Makevars.in: CC=mpicc SHLIB_LD=mpicc. Hopefully the patch can get up… ? entire patch to Makeconf.in (4 new lines): --- Makeconf.in 2011-03-17 14:18:05.

[Rd] "\examples" section for "base/man/replace.Rd"

2011-08-15 Thread Timothy Bates
There is no usage example for replace(). Here is a patch to replace.Rd that offers one. # Clean up a vector of text answers foo <- c("Yes”, "n”, "no answer") foo <- replace(foo, list=c(2, 3), values=c("No”, NA)) foo # "Yes" "No” NA diff attached best wishes, tim ___

[Rd] Rd for write.table {utils}: Be explicit about the default separator

2011-08-13 Thread Timothy Bates
In "utils/write.table.Rd" the default separator is shown as the invisible character " ". In the further documentation, the default separator is not named. It would helpful to specify it using an escape character in the \Usage section "\s" or "\t"? and to name it explicitly in the \Arguments

[Rd] \example for replace.Rd

2011-08-07 Thread Timothy Bates
The base help file replace.Rd has no usage example. Might this example be helpful? \examples{ foo <- c("Yes","n","no answer") foo <- replace(foo, list=c(2, 3), values=c("No”, NA)) foo # "Yes" "No" NA } Also, the Rd file doesn’t point to other relevant functions the us

[Rd] adding examples of stop and break to function.Rd and Control.Rd

2011-08-06 Thread Timothy Bates
function.Rd currently has no example of "stop", Similarly in Control.Rd, there is currently no example of break: these might be helpful for users. function.Rd suggestion: # Often it is useful to be able to exit a function on some condition: Use "stop" to do this testJunk <- function(junk) {