首页 > 解决方案 > Unable to download new packages in R on Mac

问题描述

Since updating R, I cannot seem to download any new packages without running into some errors. Most recently, I am unable to even load the ggplot2 package. Here are the errors I receive:

library(ggplot2)

Error: package or namespace load failed for ‘ggplot2’ in rbind(info, getNamespaceInfo(env, "S3methods")):
number of columns of matrices must match (see arg 2) 
    
In addition: Warning messages:

1: In normalizePath(dirname(f)) : path[1]="NA": No such file or directory
2: package ‘ggplot2’ was built under R version 3.6.2 

Can someone tell me what this means/how to fix it?

标签: rmacosggplot2package

解决方案


推荐阅读