[Rd] bug in 'optim' documentation : "Brent" method doesn't copy 'par' names

2018-06-22 Thread Carles Bretó Martínez
The optim documentation states (second from last sentence of Details Section) that "Any names given to par will be copied to the vectors passed to \code{fn} and \code{gr}." This does not seem to be the case when the method argument is set to "Brent". Consider finding an optimum with the "Brent"

Re: [Rd] Bug in as.Date or strptime?

2018-06-22 Thread Duncan Murdoch
On 22/06/2018 9:55 AM, Rui Barradas wrote: Hello, This just came up in SO, sessionInfo() at the end. https://stackoverflow.com/questions/50988018/seeking-explanation-for-as-date-function-in-r?noredirect=1#comment88971055_50988018 # example 1 # not even the month is right as.Date(x = 1, form

[Rd] Bug in as.Date or strptime?

2018-06-22 Thread Rui Barradas
Hello, This just came up in SO, sessionInfo() at the end. https://stackoverflow.com/questions/50988018/seeking-explanation-for-as-date-function-in-r?noredirect=1#comment88971055_50988018 # example 1 # not even the month is right as.Date(x = 1, format = '%j', origin= '2015-01-01') #[1] "2018-