[Rd] combining generics/methods from multiple packages

2014-07-28 Thread Randall Pruim
I’m wondering if there is any way for me to create a generic function in a package that merges the generics and methods from two or more packages that each define a generic with the same name, but have non intersecting instances. Here is an example. dplyr and MASS both define an S3 generic sel

Re: [Rd] R-devel Digest, Vol 137, Issue 25

2014-07-28 Thread John Maindonald
Finding and not unnecessarily duplicating existing functionality is important also from a user perspective. Negative binomial regression provides a somewhat extreme example of existing overlap between packages, with the scope that this creates for confusing users, especially as the notation is

[Rd] Parsing and deparsing of escaped unicode characters

2014-07-28 Thread Jeroen Ooms
In both R and JSON (and many other languages), unicode characters can be escaped using a backslash followed by a lowercase "u" and a 4 digit hex code. However when deparsing a character vector in R on Windows, the non-latin characters get escaped as "": > x <- "I like \u5BFF\u53F8" > cat(x) I like