Error in UseMethod("select_") : no applicable method for 'select_' applied to an object of class "function"

Hello,

I have an issue running my RMarkdown.
I get this error:

Error in UseMethod("select_") : no applicable method for 'select_' applied to an object of class "function"

Yet, looked to similar problem and answers did not really help. Or I am a newbie when dealing with Rmarkdonwn.


`select_(.data, .dots = compat_as_lazy_dots(...)) 10. select.default(., ID, Country) 9. dplyr::select(., ID, Country) 8. function_list[[i]](value) 7. freduce(value, `_function_list`) 6. `_fseq`(`_lhs`) 5. eval(quote(`_fseq`(`_lhs`)), env, env) 4. eval(quote(`_fseq`(`_lhs`)), env, env) 3. withVisible(eval(quote(`_fseq`(`_lhs`)), env, env)) 2. data %>% dplyr::select(ID, Country) %>% dplyr::group_by(Country) %>% dplyr::summarise(Count = n()) %>% dplyr::mutate(Frequency = Count/sum(Count)) %>% dplyr::ungroup() %>% dplyr::arrange(desc(Count)) at count_map_world.R#19 1. cvindia::count_mapp_world(data = data, item = "world", start_date = "2020-04-09", end_date = "2020-05-09", plot_chart = TRUE, title = "World Map")

Would you be able to share the code chunk that produced this error? Also, what packages are you using for this analysis? It would be helpful if you could run the chunks in the R console and then share the results of sessionInfo().

Hello jdblischak,

I have solved the issue by saving the data into a folder and reading it from there. Because I had a full code with select from dplyr. I cannot replicate the case since i do not have the problem anymore

1 Like

I'm glad you were able to solve the issue! For the benefit of future readers, could you please select your comment as the solution? This way others will know it has been resolved.

FAQ: How do I mark a solution?

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.