I found a potential bug that crashes Rstudio all together. Here is the reproducible example.
library(data.table)
re_d <-
structure(
list(
rn = c("any_of(fn1)", "any_of(fn2)", "main_folder", "stata_file",
"text?", "text?", "text?"),
re = c(NA, NA, NA, NA, "[^/]+?", "[^/]+?", "[^/]+?")
),
.Names = c("rn", "re"),
class = c("data.table", "data.frame"),
row.names = c(NA, -7L),
sorted = "rn"
)
pf <- function(x) {
print(x)
utils::flush.console()
return(invisible(x))
}
obj_n <- c("excel_file", "fn1", "fn2", "main_folder", "scan_path", "spss_file", "stata_file", "x")
# This works fine
re_d[, pf(rn)]
# This works fine
re_d[J(obj_n), rn, by = .EACHI, nomatch = 0]
# This bring the pain train.
re_d[J(obj_n), pf(rn), by = .EACHI, nomatch = 0]
Hi guys,
I found a potential bug that crashes Rstudio all together. Here is the reproducible example.
Before Rstudio disintegrates all I see is:
My session info: