karimn / covid-19-transmission

0 stars 0 forks source link

mobility_report.Rmd error #52

Open Junyi-Que opened 4 years ago

Junyi-Que commented 4 years ago

if (!is_null(params$country_code)) { results %<>% mutate(run_data = map(run_data, filter, fct_match(country_code, params$country_code))) }

Error in map(run_data, filter, fct_match(country_code, params$country_code)) : object 'run_data' not found

karimn commented 4 years ago

Could you please provide some more context? What file is this in and what were you doing? If possible can you share the results file so I can repro the problem. Thansk.

Junyi-Que commented 4 years ago

It's the mobility_report.Rmd. When I tried to knit with the Italy results, it reports

Error in map(run_data, filter, fct_match(country_code, params$country_code)) : object 'run_data' not found

I cannot find codes that importing this dataset but it's used here.

FYI, I tweaked the code a little bit to fit my situations, with the new header: params: results_path: data/mobility/results country_code: IT results_file: mob_results.rds fit_file: mob.RData subnat_hier: true multi_singletons: false extract_results: false suppress_imputed_cases: true

karimn commented 4 years ago

The mob_results.rds you're using is on github? If not, could you put on a temporary location on Dropbox or something?

On Fri, Aug 7, 2020 at 9:40 AM Junyi-Que notifications@github.com wrote:

It's the mobility_report.Rmd. When I tried to knit with the Italy results, it reports

Error in map(run_data, filter, fct_match(country_code, params$country_code)) : object 'run_data' not found

I cannot find codes that importing this dataset but it's used here.

FYI, I tweaked the code a little bit to fit my situations, with the new header: params: results_path: data/mobility/results country_code: IT results_file: mob_results.rds fit_file: mob.RData subnat_hier: true multi_singletons: false extract_results: false suppress_imputed_cases: true

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/karimn/covid-19-transmission/issues/52#issuecomment-670522109, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABB554WZZKGXFVPUVK4RRLR7P747ANCNFSM4PXUI76Q .

Junyi-Que commented 4 years ago

Yes. It's in the master branch and my branch. The path is given in the last comment, data/mobility/results c