在下载github上的包时
devtools::install_github('royfrancis/pophelper')
报错如下:
package ‘rlang’ successfully unpacked and MD5 sums checked Error: Failed to install ‘pophelper’ from GitHub: (converted from warning) cannot remove prior installation of package ‘rlang’
首先删掉你的R中library目录下的rlang
然后
install.packages('rlang')
之后可能还有类似错误,解决方法跟上面的一致