Closed joscani closed 6 years ago
Hmm, that's worrisome (and I unfortunately can't reproduce). Could you share the results of traceback()
?
Today the example works, It seems like the amazon guys fix their configuration of rstudio and R. I think they have been fixed their amazon linux ami. Thanks for your great package.
I am getting the same error while running the same query!
Error:
n= value must be a symbol or a string, not a formula Call
rlang::last_error()` to see a backtrace
traceback() 21: stop(cnd) 20: .abort(text) 19: glubort(fmt_named_calls(named_calls), ..., .envir = .envir) 18: bad_named_calls(named_call, "must be a symbol or a string, not {actual_type}") 17: (function (expr, name) { switch_type(expr, string = , symbol = return(as_string(expr)), language = if (is_data_pronoun(expr)) { args <- node_cdr(expr) return(switch_rename(node_cadr(args))) } else { abort("Expressions are currently not supported in
rename()
") }) actual_type <- friendly_type(type_of(expr)) named_call <- ll(:=
(!(!name), expr)) bad_named_calls(named_call, "must be a symbol or a string, not {actual_type}") })(dots[[1L]][[1L]], dots[[2L]][[1L]]) 16: mapply(FUN = f, ..., SIMPLIFY = FALSE) 15: Map(.f, .x, .y, ...) 14: map2(exprs, names(exprs), switch_rename) 13: rename_vars(names(.data), !(!(!quos(...)))) 12: rename.data.frame(., n = value) 11: rename(., n = value) 10: function_list[k] 9: withVisible(function_list[k]) 8: freduce(value,_function_list
) 7:_fseq
(_lhs
) 6: eval(quote(_fseq
(_lhs
)), env, env) 5: eval(quote(_fseq
(_lhs
)), env, env) 4: withVisible(eval(quote(_fseq
(_lhs
)), env, env)) 3: tbl %>% distinct_(.dots = c(item, feature), .keep_all = TRUE) %>% mutate(..value = 1) %>% func(item, feature, wt) %>% rename(n = value) 2: pairwisecount(tbl, col_name(substitute(item)), col_name(substitute(feature)), wt = col_name(substitute(wt)), ...) 1: pairwise_count(dat, letter, group)`
Hi. I install widyr in EMR and I get error with simple examples
I think is a problem with dplyr, but I install last version of dplyr without problem.
My session info is
Any idea? yesterday the function works great but today we have launched a new cluster emr with the same init script