PaulMelloy / cercospoRa

A R package for determining the timing of Cercospora beticola epidemics in sugar beet
https://paulmelloy.github.io/cercospoRa/
Other
1 stars 1 forks source link

calc_DIV.R and latent_period.R #7

Open ReneHeim opened 7 months ago

ReneHeim commented 7 months ago

I have been testing the functions using the pre-installed Brisbane data and now also using 27 different weather stations in our sugar beet trial. Without failure, calc_DIV() works as expected. And as far as I understand, both Racca DIV and DIV use latent_period.R to generate the moisture and temperature index. However, when trying to run moisture and temperature index as stand-alone functions (also using latent_period.R), then I receive the following error message:

Error in latent_period(dfs[[1]]$temp, ref = "wolf") : could not find function "latent_period"

PaulMelloy commented 3 months ago

This might be because latent_period() is not an exported function. That means it is not available to people installing the package, it is only available when working on the package repo and using the devtools::load_all() function