I cannot load the LFE package - it gives me this error. It is already loaded in the package space but when I write in my console "library(lfe)" it appears that. Can someone help me out or explain why this happens please? Thanks in advance
library(lfe)
Error: package or namespace load failed for ‘lfe’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
there is no package called ‘Formula’
Thanks, but I tried and it gives me this when I tried to load the life package
library(lfe)
Error: package or namespace load failed for ‘lfe’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
there is no package called ‘sandwich’
I did what you said for "lfe" and it works now. When I loaded it appeared this "he downloaded binary packages are in
/var/folders/n1/vps_4_bd6tsbvnz8f88b08mr0000gn/T//Rtmp4MgH8F/downloaded_packages
Its quite possible I cant help you. as im not a Mac user.
Rstudio though should have many things similar. like the top menus.
Do you have a file menu?
do you have an edit menu?
do you have a Session menu?
if so, look for restart options in the session menu.
I think the weird thing in your case is that no errors show for Matrix on Install, but when you load the library it errors. Im thinking it might be helpful to restart your session, both before and after install.packages("Matrix"), before going on to the library(Matrix) step.