{"action":"created","issue":{"url":"https://api.github.com/repos/hadley/dplyr/issues/1025","labels_url":"https://api.github.com/repos/hadley/dplyr/issues/1025/labels{/name}","comments_url":"https://api.github.com/repos/hadley/dplyr/issues/1025/comments","events_url":"https://api.github.com/repos/hadley/dplyr/issues/1025/events","html_url":"https://github.com/hadley/dplyr/issues/1025","id":62299284,"number":1025,"title":"Error: `select_vars` matching multi-byte string","user":{"login":"leoluyi","id":8746961,"avatar_url":"https://avatars.githubusercontent.com/u/8746961?v=3","gravatar_id":"","url":"https://api.github.com/users/leoluyi","html_url":"https://github.com/leoluyi","followers_url":"https://api.github.com/users/leoluyi/followers","following_url":"https://api.github.com/users/leoluyi/following{/other_user}","gists_url":"https://api.github.com/users/leoluyi/gists{/gist_id}","starred_url":"https://api.github.com/users/leoluyi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leoluyi/subscriptions","organizations_url":"https://api.github.com/users/leoluyi/orgs","repos_url":"https://api.github.com/users/leoluyi/repos","events_url":"https://api.github.com/users/leoluyi/events{/privacy}","received_events_url":"https://api.github.com/users/leoluyi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/hadley/dplyr/milestones/8","html_url":"https://github.com/hadley/dplyr/milestones/0.5","labels_url":"https://api.github.com/repos/hadley/dplyr/milestones/8/labels","id":766580,"number":8,"title":"0.5","description":"","creator":{"login":"hadley","id":4196,"avatar_url":"https://avatars.githubusercontent.com/u/4196?v=3","gravatar_id":"","url":"https://api.github.com/users/hadley","html_url":"https://github.com/hadley","followers_url":"https://api.github.com/users/hadley/followers","following_url":"https://api.github.com/users/hadley/following{/other_user}","gists_url":"https://api.github.com/users/hadley/gists{/gist_id}","starred_url":"https://api.github.com/users/hadley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hadley/subscriptions","organizations_url":"https://api.github.com/users/hadley/orgs","repos_url":"https://api.github.com/users/hadley/repos","events_url":"https://api.github.com/users/hadley/events{/privacy}","received_events_url":"https://api.github.com/users/hadley/received_events","type":"User","site_admin":false},"open_issues":143,"closed_issues":70,"state":"open","created_at":"2014-08-26T20:16:29Z","updated_at":"2015-10-22T20:51:32Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2015-03-17T06:15:49Z","updated_at":"2015-10-22T20:51:32Z","closed_at":"2015-10-22T20:51:32Z","body":"Identical var_names string\r\n\r\n    var_names_1 <- names(raw.data)[1:5]\r\n    var_names_2 <- c(\"Panel.ID\", \"Sequence\",\"Identity\",\"AnswerStatus\", \"共同題目總應答時間\")\r\n    identical(var_names_1, var_names_2)\r\n    # [1] TRUE\r\n \r\nOne show s error when matching strings.\r\n\r\n    select_vars(var_names1, contains(\"s\"))  # shows error\r\n    # Error in grep(match, vars, fixed = TRUE) : invalid multibyte string at \r\n    # '<e5><85><b1>?<a1>蝮賣                <87><ad><99><96><93>'\r\n\r\n    select_vars(var_names2, contains(\"s\"))  # works fine\r\n    # Sequence   AnswerStatus \r\n    # \"Sequence\" \"AnswerStatus\" \r\n\r\n\r\n\r\n    sessionInfo()\r\n    R version 3.1.3 (2015-03-09)\r\n    Platform: x86_64-w64-mingw32/x64 (64-bit)\r\n    Running under: Windows 7 x64 (build 7601) Service Pack 1\r\n        \r\n    locale:\r\n    [1] LC_COLLATE=Chinese (Traditional)_Taiwan.950 \r\n    [2] LC_CTYPE=Chinese (Traditional)_Taiwan.950   \r\n    [3] LC_MONETARY=Chinese (Traditional)_Taiwan.950\r\n    [4] LC_NUMERIC=C                                \r\n    [5] LC_TIME=Chinese (Traditional)_Taiwan.950    \r\n\r\n    attached base packages:\r\n    [1] stats     graphics  grDevices utils     datasets  methods   base     \r\n\r\n    other attached packages:\r\n    [1] openxlsx_2.4.0 dplyr_0.4.1   \r\n\r\n    loaded via a namespace (and not attached):\r\n    [1] assertthat_0.1       bitops_1.0-6         DBI_0.3.1           \r\n    [4] devtools_1.7.0       digest_0.6.8         httr_0.6.1          \r\n    [7] jsonlite_0.9.14      lazyeval_0.1.10.9000 magrittr_1.5        \r\n    [10] parallel_3.1.3       R6_2.0.1             Rcpp_0.11.5         \r\n    [13] RCurl_1.95-4.5       stringr_0.6.2        tools_3.1.3    \r\n"},"comment":{"url":"https://api.github.com/repos/hadley/dplyr/issues/comments/150352513","html_url":"https://github.com/hadley/dplyr/issues/1025#issuecomment-150352513","issue_url":"https://api.github.com/repos/hadley/dplyr/issues/1025","id":150352513,"user":{"login":"hadley","id":4196,"avatar_url":"https://avatars.githubusercontent.com/u/4196?v=3","gravatar_id":"","url":"https://api.github.com/users/hadley","html_url":"https://github.com/hadley","followers_url":"https://api.github.com/users/hadley/followers","following_url":"https://api.github.com/users/hadley/following{/other_user}","gists_url":"https://api.github.com/users/hadley/gists{/gist_id}","starred_url":"https://api.github.com/users/hadley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hadley/subscriptions","organizations_url":"https://api.github.com/users/hadley/orgs","repos_url":"https://api.github.com/users/hadley/repos","events_url":"https://api.github.com/users/hadley/events{/privacy}","received_events_url":"https://api.github.com/users/hadley/received_events","type":"User","site_admin":false},"created_at":"2015-10-22T20:51:32Z","updated_at":"2015-10-22T20:51:32Z","body":"This should be fixed in 0.4.3. If not, please file a new bug with a minimal reprex (and no `sessionInfo())`"}}