Re: [R] Packages sometimes don't update, but no error or warning is thrown

2024-02-13 Thread Berwin A Turlach
G'day Philipp, On Tue, 13 Feb 2024 09:59:17 +0100 gernophil--- via R-help wrote: > this question is related to this > (https://community.rstudio.com/t/packages-are-not-updating/166214/3), > [...] > To sum it up: If I am updating packages (be it via Bioconductor or > CRAN) some packages simply d

Re: [R] Optimal use of optim?

2024-02-13 Thread J C Nash
This won't answer the questions, but will point out that I wrote the Nelder-Mead, BFGS (I call it Variable Metric) and CG methods in BASIC in 1974. They were re-coded many times and then incorporated in R around 1995 as I recall (Brian Ripley did the incorporation). There are some great 50 year

[R] Optimal use of optim?

2024-02-13 Thread Leo Mada via R-help
Dear R-Users, I am interested in the optimal strategy for optim: Q: How to formulate the optimization problem? Q1: Are there benefits for abs(f(x)) vs (f(x))^2? Q2: Are there any limitations for using abs(...)? Regarding point 1: my feeling is that the gradients should be more robust with the a

Re: [R] Skip jumps in curve

2024-02-13 Thread Bill Dunlap
Here is the skeleton of a function that lets you supply a function that will be applied to diff(y) to say if this next point should be connected by a line to the previous point. p <- function (x, y = NULL, dy = diff(y), predicate = function(dy) abs(dy)>2, ..., xlab = if (!missing(x)) deparse1(su

Re: [R] Skip jumps in curve

2024-02-13 Thread Duncan Murdoch
It should be pretty easy to generalize my version of the `plot.gamma()` function to a version of `curve()` with an extra `discontinuities` argument. Duncan Murdoch On 13/02/2024 1:44 p.m., Leo Mada wrote: Dear Duncan, Thank you very much for the response. I suspected that such an option has

Re: [R] Skip jumps in curve

2024-02-13 Thread Leo Mada via R-help
Dear Duncan, Thank you very much for the response. I suspected that such an option has not been implemented yet. The plot was very cluttered due to those vertical lines. Fortunately, the gamma function is easy to handle. But the feature remains on my wishlist as useful more in general. Sincer

Re: [R] Skip jumps in curve

2024-02-13 Thread Duncan Murdoch
On 13/02/2024 10:29 a.m., Leo Mada via R-help wrote: Dear R-Users, Is there a way to skip over without plotting the jumps/discontinuities in curve()? I have not seen such an option, but maybe I am missing something. plot.gamma = function(xlim = c(-6, -1), ylim = c(-1,3), hline = NULL, n = 100

[R] Skip jumps in curve

2024-02-13 Thread Leo Mada via R-help
Dear R-Users, Is there a way to skip over without plotting the jumps/discontinuities in curve()? I have not seen such an option, but maybe I am missing something. plot.gamma = function(xlim = c(-6, -1), ylim = c(-1,3), hline = NULL, n = 1000) { curve(gamma(x), from = xlim[1], to = xlim[2],

Re: [R] Packages sometimes don't update, but no error or warning is thrown

2024-02-13 Thread Duncan Murdoch
I think you should ask more from the BioC folks, or do more digging yourself. At a minimum we would need to know what arguments were used in the call that failed before we could help you with this. So if this ever happens again, here's what you can do: Run debug(install.packages), then the

Re: [R] Packages sometimes don't update, but no error or warning is thrown

2024-02-13 Thread Rui Barradas
Às 10:09 de 13/02/2024, gernophil--- via R-help escreveu: Yes you're right that it started as an Bioconductor issue. The reason I am writing it here, if because of one of the core members of the Bioconductor project stated this: "(...) But anyway, it's almost certainly an install.packages issue

Re: [R] Packages sometimes don't update, but no error or warning is thrown

2024-02-13 Thread gernophil--- via R-help
Yes you're right that it started as an Bioconductor issue. The reason I am writing it here, if because of one of the core members of the Bioconductor project stated this: "(...) But anyway, it's almost certainly an install.packages issue rather than BiocManager::install, so you might check over

[R] Packages sometimes don't update, but no error or warning is thrown

2024-02-13 Thread Duncan Murdoch
Those three references are about RStudio and Bioconductor (or at least they start out that way, I didn't read through the long threads). Neither of those is relevant here, but from my quick scan it appears the issue is that those systems detect a package in source form is available, then ins

[R] Packages sometimes don't update, but no error or warning is thrown

2024-02-13 Thread gernophil--- via R-help
Hey everyone,   this question is related to this (https://community.rstudio.com/t/packages-are-not-updating/166214/3), this (https://www.biostars.org/p/9586316/#9586323) and this (https://support.bioconductor.org/p/9156283/#9156308). The two latter ones are pots from myself.   To sum it up: If