rpackageape

cannot load the R package 'ape'


I recently had to install a new hard drive in my laptop, and so am re-installing all of my R packages. I installed R version 3.5.1 and ran the code to install all of the packages I had previously installed. However,when I come to load them, specifically the commonly used 'ape' package I get the following error: Error: package or namespace load failed for ‘ape’: object ‘warnErrList’ is not exported by 'namespace:utils'

I haven't been able to find a solution to this specific problem online, any thoughts?

Thanks


Solution

  • There are likely dependencies to the ape package that are not installed. To resolve this reinstall the package with this command: install.packages("ape", dependencies = T) which will automatically install any other package that ape relies on.