{"action":"closed","issue":{"url":"https://api.github.com/repos/hadley/dtplyr/issues/56","repository_url":"https://api.github.com/repos/hadley/dtplyr","labels_url":"https://api.github.com/repos/hadley/dtplyr/issues/56/labels{/name}","comments_url":"https://api.github.com/repos/hadley/dtplyr/issues/56/comments","events_url":"https://api.github.com/repos/hadley/dtplyr/issues/56/events","html_url":"https://github.com/hadley/dtplyr/issues/56","id":284112159,"node_id":"MDU6SXNzdWUyODQxMTIxNTk=","number":56,"title":"arrange throws warning when used with dplyr::desc (but not with just desc)","user":{"login":"s-fleck","id":9320338,"node_id":"MDQ6VXNlcjkzMjAzMzg=","avatar_url":"https://avatars1.githubusercontent.com/u/9320338?v=4","gravatar_id":"","url":"https://api.github.com/users/s-fleck","html_url":"https://github.com/s-fleck","followers_url":"https://api.github.com/users/s-fleck/followers","following_url":"https://api.github.com/users/s-fleck/following{/other_user}","gists_url":"https://api.github.com/users/s-fleck/gists{/gist_id}","starred_url":"https://api.github.com/users/s-fleck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/s-fleck/subscriptions","organizations_url":"https://api.github.com/users/s-fleck/orgs","repos_url":"https://api.github.com/users/s-fleck/repos","events_url":"https://api.github.com/users/s-fleck/events{/privacy}","received_events_url":"https://api.github.com/users/s-fleck/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-12-22T09:16:52Z","updated_at":"2018-08-28T19:28:58Z","closed_at":"2018-08-28T19:28:58Z","author_association":"NONE","body":"dplyr 0.7.4 / dtplyr 0.0.2 throws the following warning when using `dplyr::desc()`\r\n\r\n```\r\nWarning message:\r\nIn if (!as.character(v[[1L]]) %chin% c(\"+\", \"-\")) break :\r\n  the condition has length > 1 and only the first element will be used\r\n```\r\n\r\nThe problem only occurs when:\r\n  * explicitley refering to `dplyr::desc()`\r\n  * only with data.tables\r\n\r\n```r\r\n\r\nlibrary(dplyr)\r\nlibrary(data.table)\r\n\r\n# Warning:\r\nhead(iris) %>% \r\n  data.table::as.data.table() %>%\r\n  dplyr::arrange(Sepal.Length, dplyr::desc(Species))\r\n\r\n# No warning:\r\nhead(iris) %>% \r\n  data.table::as.data.table() %>%\r\n  dplyr::arrange(Sepal.Length, desc(Species))\r\n\r\n```\r\n"}}
{"actor":{"display_login":"s-fleck"}}