Closed PaulMelloy closed 1 month ago
This is a bit weird because the example works on my local repository. I just checked it again now, but I don't get any errors. Could you maybe show me the error message you get?
Oh, I could reproduce the error by cloning the main
directory again to my local directory. The error was probably due to the replacement of raster
by terra
. The error is found in the function calc_c_closure
(But i don't see any test for it. I am happy to create it if necessary :) ). The as.vector
function produced a list for N
. So I used as.numeric
instead, and now it is working fine again.
Hi @nathanokole The
calc_c_closure
function example runs with an error. I think this is because there are two layers to the input parameter times and when running itN
gets converted to a list. This makes theminpack.lm::nlsLM()
function error as it does not expectN
to be a list.Are you able to amend this. I copied the example to the unit test script in
./tests/testthat/test-calc_c_closure.r
If you are able to create a unit test file like I did for yourread_sb_growth_parameter.R
function that would be handy. It helps checking the package runs with iterative changes much easier.