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

2023-08-06 Thread Ben Bolker
I would support this suggestion. There is a similar binary dependency chain from Matrix → TMB → glmmTMB; we have implemented various checks to make users aware that they need to reinstall from source, and to some extent we've tried to push out synchronous updates (i.e., push an update of

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

2023-08-06 Thread Dirk Eddelbuettel
CRAN, by relying on the powerful package management system that is part of R, provides an unparalleled framework for extending R with nearly 20k packages. We recently encountered an issue that highlights a missing element in the otherwise outstanding package management system. So we would like

Re: [Rd] hist(..., log="y")

2023-08-06 Thread David Winsemius
I guess my memory was off slightly. Densities are only plotted with freq=TRUE. Still there the ever present conundrum that 0 counts cannot be sensibly represented. Why not: hist( log(x), …) #? In situations where it might make sense. Sent from my iPhone > On Aug 6, 2023, at 9:01 AM, David

Re: [Rd] hist(..., log="y")

2023-08-06 Thread David Winsemius
hist() is designed so that the total area sums to 1. You should build you desired behavior using a barchart. — David Sent from my iPhone > On Aug 5, 2023, at 11:50 PM, Ott Toomet wrote: > > Sorry if this topic has been discussed earlier. > > Currently, hist(..., log="y") fails with >

Re: [Rd] HTML documentation check works best with Tidy >= 5.0.0

2023-08-06 Thread Ivan Krylov
В Sun, 6 Aug 2023 12:18:09 +0200 Kurt Hornik пишет: > IIrc all Linux versions advertize themselves as something like > > HTML Tidy for Linux version 5.8.0 > > What about windows and macOS? I've checked the "modern" Windows binaries of HTML Tidy, and they say so too. Cannot check the macOS

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

2023-08-06 Thread Ott Toomet
I have done this using attributes: fr <- function(x) { ## Rosenbrock Banana function x1 <- x[1] x2 <- x[2] ans <- 100 * (x2 - x1 * x1)^2 + (1 - x1)^2 attr(ans, "extra1") <- 1:10 attr(ans, "extra2") <- letters ans } Not sure if this works in your case though. Cheers, Ott On

[Rd] hist(..., log="y")

2023-08-06 Thread Ott Toomet
Sorry if this topic has been discussed earlier. Currently, hist(..., log="y") fails with > hist(rexp(1000, 1), log="y") Warning messages: 1: In plot.window(xlim, ylim, "", ...) : nonfinite axis=2 limits [GScale(-inf,2.59218,..); log=TRUE] -- corrected now 2: In title(main = main, sub = sub,