Re: [Rd] conflicted: an alternative conflict resolution strategy

2018-08-24 Thread Gabe Becker
Hadley, Overall seems like a cool and potentially really idea. I do have some thoughts/feedback, which I've put in-line below On Thu, Aug 23, 2018 at 11:31 AM, Hadley Wickham wrote: > > > > conflicted applies a few heuristics to minimise false positives (at the > cost of introducing a few fal

Re: [Rd] conflicted: an alternative conflict resolution strategy

2018-08-24 Thread Duncan Murdoch
On 24/08/2018 3:12 AM, Jari Oksanen wrote: If you have to load two packages which both export the same name in their namespaces, namespace does not help in resolving which synonymous function to use. Neither does it help to have a package instead of a script as long as you end up loading two na

[Rd] True length - length(unclass(x)) - without having to call unclass()?

2018-08-24 Thread Henrik Bengtsson
Is there a low-level function that returns the length of an object 'x' - the length that for instance .subset(x) and .subset2(x) see? An obvious candidate would be to use: .length <- function(x) length(unclass(x)) However, I'm concerned that calling unclass(x) may trigger an expensive copy intern

[Rd] plotmath degree symbol

2018-08-24 Thread Edzer Pebesma
In plotmath expressions, R's degree symbol, e.g. shown by plot(1, main = parse(text = "1*degree*C")) has sunk to halfway the text line, instead of touching its top. In older R versions this looked much better. -- Edzer Pebesma Institute for Geoinformatics Heisenbergstrasse 2, 48151 Muenster, Ger

Re: [Rd] conflicted: an alternative conflict resolution strategy

2018-08-24 Thread Joris Meys
On Fri, Aug 24, 2018 at 2:27 PM Hadley Wickham wrote: > > My questions are not about how to develop a package, R CMD check, or > how to get it on CRAN, but instead about the semantics of the packages > I am working on. My opinion is supported by the fact that a number of > members of the R core t

Re: [Rd] conflicted: an alternative conflict resolution strategy

2018-08-24 Thread Hadley Wickham
On Fri, Aug 24, 2018 at 4:28 AM Joris Meys wrote: > > Dear Hadley, > > There's been some mails from you lately about packages on R-devel. I would > argue that the appropriate list for that is R-pkg-devel, as I've been told > myself not too long ago. People might get confused and think this is ab

Re: [Rd] conflicted: an alternative conflict resolution strategy

2018-08-24 Thread Hadley Wickham
On Thu, Aug 23, 2018 at 3:46 PM Duncan Murdoch wrote: > > First, some general comments: > > This sounds like a useful package. > > I would guess it has very little impact on runtime efficiency except > when attaching a new package; have you checked that? It adds one extra element to the search pa

Re: [Rd] conflicted: an alternative conflict resolution strategy

2018-08-24 Thread Joris Meys
Dear Hadley, There's been some mails from you lately about packages on R-devel. I would argue that the appropriate list for that is R-pkg-devel, as I've been told myself not too long ago. People might get confused and think this is about a change to R itself, which it obviously is not. Kind regar

Re: [Rd] Translating Rd files

2018-08-24 Thread Gábor Csárdi
On Wed, Aug 22, 2018 at 12:30 AM Duncan Murdoch wrote: > > On 21/08/2018 5:53 PM, Gábor Csárdi wrote: > > Dear All, > > > > are there any resources (code, guidelines, anything) for translating Rd > > files? > > As far as I can tell, the help system does not have support for this. > > Have I misse

Re: [Rd] conflicted: an alternative conflict resolution strategy

2018-08-24 Thread Jari Oksanen
If you have to load two packages which both export the same name in their namespaces, namespace does not help in resolving which synonymous function to use. Neither does it help to have a package instead of a script as long as you end up loading two namespaces with name conflicts. The order of i