I changed the default directory of the packages installation using this answer. However, when I try to use ggplot2 appears the following message:
Error: package or namespace load failed for ‘ggplot2’ in rbind(info, getNamespaceInfo(env, "S3methods")): number of columns of matrices must match (see arg 2)
How can I solve this?