{"action":"created","issue":{"url":"https://api.github.com/repos/hadley/dplyr/issues/2317","repository_url":"https://api.github.com/repos/hadley/dplyr","labels_url":"https://api.github.com/repos/hadley/dplyr/issues/2317/labels{/name}","comments_url":"https://api.github.com/repos/hadley/dplyr/issues/2317/comments","events_url":"https://api.github.com/repos/hadley/dplyr/issues/2317/events","html_url":"https://github.com/hadley/dplyr/issues/2317","id":195264520,"number":2317,"title":"no warning message about factor to character coercion shown when binding dataframes","user":{"login":"salim-b","id":20040931,"avatar_url":"https://avatars.githubusercontent.com/u/20040931?v=3","gravatar_id":"","url":"https://api.github.com/users/salim-b","html_url":"https://github.com/salim-b","followers_url":"https://api.github.com/users/salim-b/followers","following_url":"https://api.github.com/users/salim-b/following{/other_user}","gists_url":"https://api.github.com/users/salim-b/gists{/gist_id}","starred_url":"https://api.github.com/users/salim-b/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/salim-b/subscriptions","organizations_url":"https://api.github.com/users/salim-b/orgs","repos_url":"https://api.github.com/users/salim-b/repos","events_url":"https://api.github.com/users/salim-b/events{/privacy}","received_events_url":"https://api.github.com/users/salim-b/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-13T14:18:36Z","updated_at":"2016-12-13T14:52:06Z","closed_at":null,"body":"With [dplyr v0.4.0](https://github.com/hadley/dplyr/blob/master/NEWS.md#minor-improvements) warning messages were introduced when a coercion from type factor to character is needed to produce a valid result using `bind_rows()` and other operations.\r\n\r\nIf I run the following, the warning message is shown as expected:\r\n```R\r\n> bind_rows(data_frame(a = factor(\"a\")), data_frame(a = \"a\"))\r\n# A tibble: 2 × 1\r\n      a\r\n  <chr>\r\n1     a\r\n2     a\r\nWarnmeldung:\r\nIn bind_rows_(x, .id) :\r\n  binding factor and character vector, coercing into character vector\r\n```\r\nNow if I switch the order of the dataframes no warning message appears although the same coercion from type `factor` to `character` is applied to the second dataframe:\r\n```R\r\n> bind_rows(data_frame(a = \"a\"), data_frame(a = factor(\"a\")))\r\n# A tibble: 2 × 1\r\n      a\r\n  <chr>\r\n1     a\r\n2     a\r\n```\r\n\r\nThis behaviour seems confusing and in my eyes the warning message should appear in both cases. \r\n\r\nI'm using `dplyr 0.5.0` with `R 3.3.2` on `Ubuntu Linux 16.04 LTS`."},"comment":{"url":"https://api.github.com/repos/hadley/dplyr/issues/comments/266758298","html_url":"https://github.com/hadley/dplyr/issues/2317#issuecomment-266758298","issue_url":"https://api.github.com/repos/hadley/dplyr/issues/2317","id":266758298,"user":{"login":"krlmlr","id":1741643,"avatar_url":"https://avatars.githubusercontent.com/u/1741643?v=3","gravatar_id":"","url":"https://api.github.com/users/krlmlr","html_url":"https://github.com/krlmlr","followers_url":"https://api.github.com/users/krlmlr/followers","following_url":"https://api.github.com/users/krlmlr/following{/other_user}","gists_url":"https://api.github.com/users/krlmlr/gists{/gist_id}","starred_url":"https://api.github.com/users/krlmlr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krlmlr/subscriptions","organizations_url":"https://api.github.com/users/krlmlr/orgs","repos_url":"https://api.github.com/users/krlmlr/repos","events_url":"https://api.github.com/users/krlmlr/events{/privacy}","received_events_url":"https://api.github.com/users/krlmlr/received_events","type":"User","site_admin":false},"created_at":"2016-12-13T14:52:06Z","updated_at":"2016-12-13T14:52:06Z","body":"Thanks, confirmed."}}
{"actor":{"display_login":"krlmlr"}}