traitecoevo / competition_kernels

:seedling: Emergent shapes of trait-based competition functions from resource-based models :deciduous_tree::evergreen_tree::palm_tree:
2 stars 1 forks source link

Error when rerunning #48

Closed dfalster closed 4 years ago

dfalster commented 5 years ago

Coming back to this project after sometime, I get an error when running:

[ BUILD ] dat_rstar_abrams                         |  dat_rstar_abrams <- rstar_add_abrams()
Error in rootSolve::runsteady(y, derivs_deSolve(dydt), pars, times = c(0,  :
  `func' must be a function or character vector or a compiled function
Calls: <Anonymous> ... rstar_fitness_given_N -> rstar_equilibrium_R -> equilibrium -> <Anonymous>
Execution halted

@kunstler Do you also get this? Can you investigate while i continue with the writing?

kunstler commented 5 years ago

Hum, I did a fresh clone of the repo and make("dat_rstar_abrams") and that works for me.

I have the follwing sessionInfo()

> sessionInfo()
R version 3.4.1 (2017-06-30)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 14.04.4 LTS

Matrix products: default
BLAS: /usr/lib/libblas/libblas.so.3.0
LAPACK: /usr/lib/lapack/liblapack.so.3.0

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C              
 [3] LC_TIME=C                  LC_COLLATE=en_US.UTF-8    
 [5] LC_MONETARY=en_GB.UTF-8    LC_MESSAGES=en_US.UTF-8   
 [7] LC_PAPER=en_GB.UTF-8       LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C            
[11] LC_MEASUREMENT=en_GB.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] deSolve_1.20      numDeriv_2016.8-1 nleqslv_3.3.1     BB_2014.10-1     
[5] rootSolve_1.6.5.1 plant_1.0.0      

loaded via a namespace (and not attached):
[1] nlmrt_2016.3.2     compiler_3.4.1     R6_2.2.2           Rcpp_0.12.17      
[5] plantecophys_1.3-2 quadprog_1.5-5 
kunstler commented 5 years ago

make("all") work fine for me on a fresh clone of the repo.

dfalster commented 4 years ago

This is an issue with the package rootSolve. Versions newer than 1.6.X will fail.