Sometimes when loading dplyr

Sometimes, when I try to load dplyr, I get the following error:

Error in library.dynam(lib, package, package.lib) : shared object 'dplyr.so' not found In addition: Warning message: S3 methods '[.grouped_df', '[.tbl_df', 'all.equal.tbl_df', 'all.equal.tbl_dt', 'anti_join.data.frame', 'anti_join.data.table', 'anti_join.tbl_df', 'anti_join.tbl_sql', 'arrange_.data.frame', 'arrange_.data.table', 'arrange_.grouped_dt', 'arrange_.tbl_df', 'arrange_.tbl_dt', 'arrange_.tbl_sql', 'as.data.frame.grouped_df', 'as.data.frame.rowwise_df', 'as.data.frame.tbl_cube', 'as.data.frame.tbl_df', 'as.data.frame.tbl_dt', 'as.data.frame.tbl_sql', 'as.fun_list.character', 'as.fun_list.fun_list', 'as.tbl.data.frame', 'as.tbl.data.table', 'as.tbl.tbl', 'as.tbl_cube.array', 'as.tbl_cube.data.frame', 'as.tbl_cube.matrix', 'as.tbl_cube.table', 'auto_copy.tbl_cube', 'auto_copy.tbl_df', 'auto_copy.tbl_dt', 'auto_copy.tbl_sql', 'c.sql', 'collapse.data.frame', 'collapse.tbl_df', 'collapse.tbl_dt', 'collapse.tbl_sql', 'collect.data.frame', 'c [... truncated] Error: package or namespace load failed for 'dplyr' 

After rebooting, process R will work fine. Is there a reason why this happens sometimes, but not at another time?

+6
source share
1 answer

I can not comment because I do not have 50 reputation. HOWEVER I had the same problem, and I followed what was suggested by marble.

I use a Mac and used the Microsoft checkpoint package and could not load it properly if I had library(dplyr) in my R block. I deleted the dplyr folder from ~ / Library / R / 3.3 / library / dplyr as well as the folder dplyr from ~ / .checkpoint / 2017-01-01 / lib / dplyr and then just loaded the libraries and the checkpoint seemed to load dplyr correctly.

I obviously used a breakpoint from January 1, 2017. I also had to create a local .checkpoint folder because it was not automatically created. My document is compiling (I haven't tried any serious code yet), so I assume it works.

0
source

Source: https://habr.com/ru/post/978359/


All Articles