dplyr:summary函数中的min函数导致R崩溃
由于dplyr:summary函数中的min函数导致R崩溃,r,dplyr,R,Dplyr,由于过滤器,我有一个空的tbl_df: library(dplyr) df <- tbl_df(data.frame(A=c(1))) df <- df %>% filter(A > 1) 这很好: Source: local data frame [1 x 1] Mean 1 NaN 但是min函数会导致崩溃: df %>% summarise(Min=min(A, na.rm=T)) 在RStudio中,它将终止R会话,但在R命令行中,我得到了更多
过滤器
,我有一个空的tbl_df
:
library(dplyr)
df <- tbl_df(data.frame(A=c(1)))
df <- df %>% filter(A > 1)
这很好:
Source: local data frame [1 x 1]
Mean
1 NaN
但是min
函数会导致崩溃:
df %>% summarise(Min=min(A, na.rm=T))
在RStudio中,它将终止R会话,但在R命令行中,我得到了更多详细信息:
*** caught segfault ***
address 0xb8599d8, cause 'memory not mapped'
Traceback:
1: .Call("dplyr_summarise_impl", PACKAGE = "dplyr", df, dots)
2: summarise_impl(.data, dots)
3: summarise_.tbl_df(.data, .dots = lazyeval::lazy_dots(...))
4: summarise_(.data, .dots = lazyeval::lazy_dots(...))
5: summarise(., Min = min(A, na.rm = T))
6: function_list[[k]](value)
7: withVisible(function_list[[k]](value))
8: freduce(value, `_function_list`)
9: `_fseq`(`_lhs`)
10: eval(expr, envir, enclos)
11: eval(quote(`_fseq`(`_lhs`)), env, env)
12: withVisible(eval(quote(`_fseq`(`_lhs`)), env, env))
13: df %>% summarise(Min = min(A, na.rm = T))
Possible actions:
1: abort (with core dump, if enabled)
2: normal R exit
3: exit R without saving workspace
4: exit R saving workspace
Selection:
我在max
上遇到了类似的崩溃,我不知道是否还有更多的函数出现了问题
我的
dplyr
版本是0.4.2
,R版本是3.2.2
,操作系统是Ubuntu 14.04。请让我知道我的问题是否可以重现,有没有办法解决这个问题?与dplyr
version0.4.3
的行为相同。SEGFULTS总是错误。您应该将此情况报告给dplyr开发团队。与dplyr
版本0.4.3
的行为相同。Segfaults总是bug。您应该将此报告给dplyr开发团队。
*** caught segfault ***
address 0xb8599d8, cause 'memory not mapped'
Traceback:
1: .Call("dplyr_summarise_impl", PACKAGE = "dplyr", df, dots)
2: summarise_impl(.data, dots)
3: summarise_.tbl_df(.data, .dots = lazyeval::lazy_dots(...))
4: summarise_(.data, .dots = lazyeval::lazy_dots(...))
5: summarise(., Min = min(A, na.rm = T))
6: function_list[[k]](value)
7: withVisible(function_list[[k]](value))
8: freduce(value, `_function_list`)
9: `_fseq`(`_lhs`)
10: eval(expr, envir, enclos)
11: eval(quote(`_fseq`(`_lhs`)), env, env)
12: withVisible(eval(quote(`_fseq`(`_lhs`)), env, env))
13: df %>% summarise(Min = min(A, na.rm = T))
Possible actions:
1: abort (with core dump, if enabled)
2: normal R exit
3: exit R without saving workspace
4: exit R saving workspace
Selection: