【问题标题】:Error during installation of readxl in RStudio在 RStudio 中安装 readxl 时出错
【发布时间】:2019-01-19 15:26:09
【问题描述】:

我使用的是 R 版本 3.4.4 (2018-03-15) 和 RStudio 版本 1.1.456,当我尝试安装 readxl 扩展时出现此错误:

* installing *source* package ‘utf8’ ...
** package ‘utf8’ successfully unpacked and MD5 sums checked
** libs
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG     -Iutf8lite/src -fpic  -g -O2 -fdebug-prefix-map=/build/r-base-AitvI6/r-base-3.4.4=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c as_utf8.c -o as_utf8.o
as_utf8.c:17:10: fatal error: assert.h: No such file or directory
 #include <assert.h>
          ^~~~~~~~~~
compilation terminated.

【问题讨论】:

  • 你使用的是什么操作系统?

标签: r readxl


【解决方案1】:

这发生在我身上,因为 R 版本过时。

请更新您的 R 并重试。有关更新 R 的说明,请关注this

确保将 R 更新到 3.5.2。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2017-08-18
    • 2018-03-02
    • 1970-01-01
    • 2018-03-15
    • 1970-01-01
    • 2023-03-11
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多