Re: [Rd] Library lib.loc Option Ignored for Dependencies

2018-07-24 Thread Dario Strbenac
Good day, A self-contained example which reproduces the problem is packagesFolder <- tempdir() latestFolder <- file.path(packagesFolder, "latest") dir.create(latestFolder) devtools::create(file.path(latestFolder, "statistics"), description = list(Version = "1.1.0", Depends = "extras (>= 1.0.5)"

Re: [Rd] Library lib.loc Option Ignored for Dependencies

2018-07-24 Thread Benjamin Tyner
On 07/24/2018 07:50 AM, Martin Maechler wrote: Benjamin Tyner on Sat, 21 Jul 2018 13:42:43 -0400 writes: > Not sure whether it is the same issue as was raised here: > https://stat.ethz.ch/pipermail/r-devel/2010-October/058729.html > but in any case perhaps the problem cou

Re: [Rd] oddity in transform

2018-07-24 Thread Ista Zahn
On Tue, Jul 24, 2018 at 11:41 AM, Ista Zahn wrote: > I don't think it has much to do with transform in particular: > >> BOD <- data.frame(Time = 1:6, demand = runif(6)) >> BOD[["X"]] <- BOD[1:2] * seq(6); BOD > Timedemand X.Time X.demand > 11 0.8649628 1 0.8649628 > 22 0.589538

Re: [Rd] oddity in transform

2018-07-24 Thread Ista Zahn
I don't think it has much to do with transform in particular: > BOD <- data.frame(Time = 1:6, demand = runif(6)) > BOD[["X"]] <- BOD[1:2] * seq(6); BOD Timedemand X.Time X.demand 11 0.8649628 1 0.8649628 22 0.5895380 4 1.1790761 33 0.6854635 9 2.0563906 44 0.4

Re: [Rd] oddity in transform

2018-07-24 Thread Gabor Grothendieck
The idea is that one wants to write the line of code below in a general way which works the same whether you specify ix as one column or multiple columns but the naming entirely changes when you do this and BOD[, 1] and transform(BOD, X=..., Y=...) or other hard coding solutions still require writ

Re: [Rd] Library lib.loc Option Ignored for Dependencies

2018-07-24 Thread Martin Maechler
> Benjamin Tyner > on Sat, 21 Jul 2018 13:42:43 -0400 writes: > Not sure whether it is the same issue as was raised here: > https://stat.ethz.ch/pipermail/r-devel/2010-October/058729.html > but in any case perhaps the problem could partially be remedied on line > 245

Re: [Rd] oddity in transform

2018-07-24 Thread Emil Bode
I think you meant to call BOD[,1] From ?transform, the ... arguments are supposed to be vectors, and BOD[1] is still a data.frame (with one column). So I don't think it's surprising transform gets confused by which name to use (X, or Time?), and kind of compromises on the name "Time". It's also