It seems to happen in cases where the number of parameters is larger than the number of data. I've replaced the nls() call by minpack.lm::nlsLM() (https://github.com/R-Lum/Luminescence/commit/6000c14168f0ad6a49f3a0d74c0dca1ae73f155f). This should do for the time being. However, it is not really a fix and the function needs a careful look.
Describe the bug The function does not proceed any further and get stuck.
Please add a minimalistic reproducible example
Expected behaviour Should work and works, for instance for `fit.method = "EXP"). I've tested all other fitting methods and apparently they work.
Session info Latest build of master.
Update 1
It seems to be again related to the
port
algorithm and these lines:https://github.com/R-Lum/Luminescence/blob/c27a3afde7bee0db4295f170894e21cc707ba182/R/fit_DoseResponseCurve.R#L855-L865
Update 2
It seems to happen in cases where the number of parameters is larger than the number of data. I've replaced the
nls()
call byminpack.lm::nlsLM()
(https://github.com/R-Lum/Luminescence/commit/6000c14168f0ad6a49f3a0d74c0dca1ae73f155f). This should do for the time being. However, it is not really a fix and the function needs a careful look.