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

2023-08-05 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, xla

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

2023-08-05 Thread Ivan Krylov
Hello R-devel, Old versions of HTML Tidy report false positive NOTEs for the HTML verison of the manual where Tidy encounters HTML5 features it is not ready for. Conveniently, both HTML5 support and release version numbers officially appeared in HTML Tidy version 5.0.0 [*]. For example, the last

Re: [Rd] random network disconnects

2023-08-05 Thread Ivan Krylov
В Mon, 31 Jul 2023 16:43:17 +0100 Patrick Burns пишет: > At work we are getting lots of issues with 'permission denied' or > 'network not found' and so forth when reading and writing between our > machines and a file server. This happens randomly so the following > function solves the problem

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

2023-08-05 Thread Martin Becker
For a solution that does not require any change to the original function being optimized, the following one-liner could be used, which converts existing functions to functions that return only the first element: returnFirst <- function(fun) function(...) do.call(fun,list(...))[[1]] Example: f