R语言openxlsx、car、rmarkdown包安装报错: 句法分析器2行里不能有多字节字符;解决WARNING: Rtools is required to build R packages

每次打开Rstudio这里会警告句法分析器2行里不能有多字节字符
R语言openxlsx、car、rmarkdown包安装报错: 句法分析器2行里不能有多字节字符;解决WARNING: Rtools is required to build R packages_第1张图片

当安装car包时报错,安装Markdown包一直加载不出来,查了一下安装上了Rtool,毫无作用,请大家不用再尝试,个人认为Rtool最大的作用是解决安包时这个警告:
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:

https://cran.rstudio.com/bin/windows/Rtools/
试开URL’https://mirror.lzu.edu.cn/CRAN/bin/windows/contrib/3.6/zoo_1.8-9.zip’
Content type ‘application/zip’ length 1038955 bytes (1014 KB)
downloaded 1014 KB
R语言openxlsx、car、rmarkdown包安装报错: 句法分析器2行里不能有多字节字符;解决WARNING: Rtools is required to build R packages_第2张图片
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding

最后发现是版本问题,3.6.2版本对car包不支持,而copenxlsx、car、markdown等很多包是基于3.6.3版本搭建而成的。最后根据默认路径安装就可以了(不要省C盘空间,学习软件这点空间不大的)
R语言openxlsx、car、rmarkdown包安装报错: 句法分析器2行里不能有多字节字符;解决WARNING: Rtools is required to build R packages_第3张图片
安装car时一定点击否,就可以安装了,不然会出现had non-zero exit status的警告,可能一直加载,然后报错安装失败。
R语言openxlsx、car、rmarkdown包安装报错: 句法分析器2行里不能有多字节字符;解决WARNING: Rtools is required to build R packages_第4张图片

附上R 3.6.3下载链接和Rstudio下载链接:

链接:https://pan.baidu.com/s/1UPIYCZMeh9zAPdS3hq7sAg
提取码:gzj6

用朴拙的科技简化我们的生活,欢迎您在B站、知乎、公众号、github关注朴拙科技,商务合作可以微信练习微信号18091471364ln。

你可能感兴趣的:(R语言及其可视化)