Dplyr 警告:`...` 不是空的

tom*_*omw 8 r dplyr tibble

今天打印时出现新的警告信息 tibbles

library(tidyverse)

mtcars %>% 
  head %>%
  as_tibble
Run Code Online (Sandbox Code Playgroud)

印刷

# A tibble: 6 x 11
    mpg   cyl  disp    hp  drat    wt  qsec    vs    am  gear  carb
  <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl>
1  21       6   160   110  3.9   2.62  16.5     0     1     4     4
2  21       6   160   110  3.9   2.88  17.0     0     1     4     4
3  22.8     4   108    93  3.85  2.32  18.6     1     1     4     1
4  21.4     6   258   110  3.08  3.22  19.4     1     0     3     1
5  18.7     8   360   175  3.15  3.44  17.0     0     0     3     2
6  18.1     6   225   105  2.76  3.46  20.2     1     0     3     1
Warning message:
`...` is not empty.

We detected these problematic arguments:
* `needs_dots`

These dots only exist to allow future extensions and should be empty.
Did you misspecify an argument? 
Run Code Online (Sandbox Code Playgroud)

我如何摆脱那个警告?

这是我的 sessionInfo()

在此处输入图片说明

r2e*_*ans 17

这个问题不是任何 SO 问题的重复(我可以找到),但它是tibble( tibble/#798 )上的一个问题的重复,其中可重现的代码仅仅是:

tibble::tibble(a = 1)
#> Warning: `...` is not empty.
#> 
#> We detected these problematic arguments:
#> * `needs_dots`
#> 
#> These dots only exist to allow future extensions and should be empty.
#> Did you misspecify an argument?
#> # A tibble: 1 x 1
#>       a
#>   <dbl>
#> 1     1
Run Code Online (Sandbox Code Playgroud)

有一个补丁正在工作(a384b33),看来他们将推动新的 CRAN 版本。

您的选择是:

  1. 降级

    remotes::install_version("pillar", version = "1.4.4")
    
    Run Code Online (Sandbox Code Playgroud)
  2. 安装 github 版本tibble with

    remotes::install_github("tidyverse/tibble")
    
    Run Code Online (Sandbox Code Playgroud)
  3. 或等待 CRAN 发布(工作中)。

  • tibble 版本 3.0.3 [CRAN](https://cran.r-project.org/bin/windows/contrib/4.0/tibble_3.0.3.zip) 已解决此问题 (5认同)