timchurches / blog

Personal blog
40 stars 49 forks source link

Error in incidence(.) : could not find function "incidence" #4

Open j-tamad opened 4 years ago

j-tamad commented 4 years ago

At the point in your blog (Modelling the effects of public health interventions on COVID-19 transmission using R - part 1) where the dataframe sims_incidence_rates is set up, I get this error:

Error in incidence(.) : could not find function "incidence"

timchurches commented 4 years ago

You need to load the incidence library. Install it from CRAN.


t

On 20 Mar 2020, at 20:47, j0hnT notifications@github.com wrote:

 At the point in your blog (Modelling the effects of public health interventions on COVID-19 transmission using R - part 1) where the dataframe sims_incidence_rates is set up, I get this error:

Error in incidence(.) : could not find function "incidence"

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

computequeen commented 4 years ago

Hi Tim, I'm having trouble getting EpiModel package to work on my laptop, I am using a Mac, Catalina OS and R version 3.6.0. What version of R did you run this code on? thank you, it's super interesting!

timchurches commented 4 years ago

You need to install the incidence library from CRAN and load it. I accidentally omitted that from my code.

Tim C

On Sat, 28 Mar 2020 at 06:14, computequeen notifications@github.com wrote:

Hi Tim, I'm having trouble getting EpiModel package to work on my laptop, I am using a Mac, Catalina OS and R version 3.6.0. What version of R did you run this code on? thank you, it's super interesting!

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/timchurches/blog/issues/4#issuecomment-605226236, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAV2AYPREG22ZO7NPQQGESDRJT3KFANCNFSM4LQG4IOA .

XiangBu commented 4 years ago

hi, Tim I am trying run this analysing-covid-19-2019-ncov-outbreak-data-with-r-part-1.Rmd on my laptop, everyting seems going well except here, 1 ,and I've library incidence package, please help me, thanks a lot!

XiangBu commented 4 years ago

Also, all the incidence plots following this show the same way 2

timchurches commented 4 years ago

I now get the same problem. It appears to be an upstream problem in the incidence package, because it used to work. Try downgrading the incidence package helps.


t

On 28 Mar 2020, at 20:28, SandyBu notifications@github.com wrote:

 hi, Tim I am trying run this analysing-covid-19-2019-ncov-outbreak-data-with-r-part-1.Rmd on my laptop, everyting seems going well except here,

,and I've library incidence package, please help me, thanks a lot!

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

XiangBu commented 4 years ago

hi, the part1 problem solved,I update the incidence package and it also works, thanks a lot! but when I run this analysing-covid-19-2019-ncov-outbreak-data-with-r-part-2.Rmd, it seems there's something wrong with data chinese_provinces_confirmed as the following shows, I try to change the header and read it from the local file, while it went wrong in the next line, pls help me check with it, thanks a lot! 4 6