{"action":"opened","issue":{"url":"https://api.github.com/repos/hadley/dplyr/issues/1043","labels_url":"https://api.github.com/repos/hadley/dplyr/issues/1043/labels{/name}","comments_url":"https://api.github.com/repos/hadley/dplyr/issues/1043/comments","events_url":"https://api.github.com/repos/hadley/dplyr/issues/1043/events","html_url":"https://github.com/hadley/dplyr/issues/1043","id":64592715,"number":1043,"title":"dplyr CRASHES R when joining on empty data frame. Error: not compatible with STRSXP","user":{"login":"wsurles","id":926795,"avatar_url":"https://avatars.githubusercontent.com/u/926795?v=3","gravatar_id":"","url":"https://api.github.com/users/wsurles","html_url":"https://github.com/wsurles","followers_url":"https://api.github.com/users/wsurles/followers","following_url":"https://api.github.com/users/wsurles/following{/other_user}","gists_url":"https://api.github.com/users/wsurles/gists{/gist_id}","starred_url":"https://api.github.com/users/wsurles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wsurles/subscriptions","organizations_url":"https://api.github.com/users/wsurles/orgs","repos_url":"https://api.github.com/users/wsurles/repos","events_url":"https://api.github.com/users/wsurles/events{/privacy}","received_events_url":"https://api.github.com/users/wsurles/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-26T17:47:32Z","updated_at":"2015-03-26T17:47:32Z","closed_at":null,"body":"Reproducible example:\r\n\r\n```s\r\nlibrary(dplyr)\r\ntest <- data.frame() %>%\r\n  left_join(data.frame(), by = 'id')\r\n```\r\nMy real example is more complicated because I am joining in a database but this example will demonstrate the crash with no error message. \r\n\r\nIt actually happens very naturally when using a selectize input to choose a filter value. When using the type ahead feature to find the correct value to filter on, the selectize input passes \"\" into R. My dplyr chain involves filtering a table and then joining another table to it for more info. So for a moment I have a zero length data frame and this crashes R. \r\n\r\nI'd be happy to change the way the selectize input passes data, or will probably add a validate statement. But this is still an issue worth noting. There is no error message when this happens as R is totally unresponsive. \r\n\r\nWhen my app is deployed on a linux server, I see 'Error: not compatible with STRSXP\" while using the type ahead and then when a legit value is selected the chart shows up fine.  It does not crash when deployed, but while developing and testing its a big problem.\r\n\r\nI have noticed other dplyr problems causing R to crash lately. Any advice on how to avoid this would also be helpful. \r\n\r\n"}}