问答详情
源自:3-9 ggplot2绘图系统之ggplot

安装ggplot2失败。百度后发现需要先安装rlang包,结果如下,如何解决?

> install.packages("rlang")

Package which is only available in source form, and may need

  compilation of C/C++/Fortran: ‘rlang’

  These will not be installed


提问者:慕设计226598 2019-03-31 17:39

个回答

  • 慕田峪1085365
    2019-12-28 17:02:04

    安装最新版本的R

  • weixin_慕丝2456156
    2019-11-01 13:04:44

    看一下是否有如下报错信息

    xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

    ERROR: compilation failed for package ‘rlang’

    mac系统下需要安装xcrun的编译环境