Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RSession crash when calling function with arguments within rowwise mutate call within rowwise mutate call #1300

jan-glx opened this issue Aug 4, 2015 · 1 comment


Copy link

jan-glx commented Aug 4, 2015

I encountered crashes of my R session in this specific misuse of dplyr. I was unable to break it down any further:



a <- data.frame(x= 1)
b <- data.frame(y = character(), # runs fine with integer()
                stringsAsFactors = F)

g <- function(y){1} # 1 or y
f <- function() { b %>% rowwise() %>% mutate(z = g(y))}
print("f ran fine (with eror)")
try(a %>% mutate(b = f()))
print("f ran fine (with eror) within mutate")
try(a %>% rowwise() %>% mutate(b = f()))
print("f ran fine (with eror) within rowise mutate")


Error in mutate_impl(.data, dots) : 
  Value of SET_STRING_ELT() must be a 'CHARSXP' not a 'pairlist'
f ran fine (with eror)
Error : Value of SET_STRING_ELT() must be a 'CHARSXP' not a 'pairlist'
f ran fine (with eror) within mutate
<RSession crash>

Session info:

R version 3.2.1 (2015-06-18)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 8 x64 (build 9200)
other attached packages:
[1] dplyr_0.4.2

all the best and much fun to the one taking it on,

Copy link

jan-glx commented Aug 15, 2015

👍 Thanks!

romainfrancois added a commit that referenced this issue Mar 5, 2018

Renders the previous test about #1300 irrelevant, so I removed it.
@lock lock bot locked as resolved and limited conversation to collaborators Jun 9, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
None yet
None yet

No branches or pull requests

1 participant