Re: [Rd] feature request: optim() iteration of functions that return multiple values

2023-08-08 Thread Sami Tuomivaara
Thank you all very much for the suggestions, after testing, each of them would be a viable solution in certain contexts. Code for benchmarking: # preliminaries install.packages("microbenchmark") library(microbenchmark) data <- new.env() data$ans2 <- 0 data$ans3 <- 0 data$i <- 0 data$fun.value

Re: [Rd] feature request: optim() iteration of functions that return multiple values

2023-08-08 Thread J C Nash
But why time methods that the author (me!) has been telling the community for years have updates? Especially as optimx::optimr() uses same syntax as optim() and gives access to a number of solvers, both production and didactic. This set of solvers is being improved or added to regularly, with a ma

Re: [Rd] A demonstrated shortcoming of the R package management system

2023-08-08 Thread Hadley Wickham
Hi Dirk, Do you think it's worth also/instead considering a fix to S4 to avoid this caching issue in future R versions? (This is top of my for me as we consider the design of S7, and I recently made a note to ensure we avoid similar problems there: https://github.com/RConsortium/OOP-WG/issues/317

Re: [Rd] Vectorize library() to improve handling of versioned deps [sprint project proposal]

2023-08-08 Thread LluĂ­s Revilla
Hi Gabriel, Nice idea! I have encountered this problem several times, while probably a better management of libraries could avoided the issue this is an elegant solution. How would this proposal handle arguments mask.ok, include.only and exclude? For example, in the (edge) case two packages expor

Re: [Rd] A demonstrated shortcoming of the R package management system

2023-08-08 Thread Dirk Eddelbuettel
Hi Hadley, On 8 August 2023 at 08:34, Hadley Wickham wrote: | Do you think it's worth also/instead considering a fix to S4 to avoid | this caching issue in future R versions? That is somewhat orthogonal to my point of "'some uses' of the 20 year old S4 system (which as we know is fairly widely