[Rd] Minor glitch in optim()

2018-04-17 Thread J C Nash
Having worked with optim() and related programs for years, it surprised me that I haven't noticed this before, but optim() is inconsistent in how it deals with bounds constraints specified at infinity. Here's an example: # optim-glitch-Ex.R x0<-c(1,2,3,4) fnt <- function(x, fscale=10){ yy <- len

Re: [Rd] strange warning: data() error?

2018-04-17 Thread peter dalgaard
> On 17 Apr 2018, at 01:08 , David Winsemius wrote: > > > Hypothesis: datasets in a ..library/data/Rdata.rds file whose listing does > not match the name of the dataset from which it is derived will cause the > behavior in question. Yes, because data() originally goes looking for a file wi