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

d*ply errors on 0-length .variables arg #18

Closed
btomi opened this issue Oct 13, 2010 · 1 comment
Closed

d*ply errors on 0-length .variables arg #18

btomi opened this issue Oct 13, 2010 · 1 comment

Comments

@btomi
Copy link

btomi commented Oct 13, 2010

I would expect

x <- data.frame(a=1)
d_ply(x, character(), print)

to be equivalent to

print(x)

but, I get this error instead (with version 1.2.1):

*** caught segfault ***
address (nil), cause 'memory not mapped'

Traceback:
1: .Call("split_indices", index, group, as.integer(n))
2: split_indices(seq_along(splitv), as.integer(splitv), attr(splitv,     "n"))
3: splitter_d(.data, .variables)
4: d_ply(x, character(), print)

Possible actions:
1: abort (with core dump, if enabled)
2: normal R exit
3: exit R without saving workspace
4: exit R saving workspace

On the other hand,

d_ply(data.frame(a=c(1,2)), character(), print)

does not error, but loops infinitely.

@hadley
Copy link
Owner

hadley commented Dec 28, 2010

These are both now fixed in the development version

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants