{"action":"created","issue":{"url":"https://api.github.com/repos/hadley/dplyr/issues/1323","labels_url":"https://api.github.com/repos/hadley/dplyr/issues/1323/labels{/name}","comments_url":"https://api.github.com/repos/hadley/dplyr/issues/1323/comments","events_url":"https://api.github.com/repos/hadley/dplyr/issues/1323/events","html_url":"https://github.com/hadley/dplyr/issues/1323","id":101190613,"number":1323,"title":"`summarize_`,`filter_`,etc... not finding functions in GlobalEnv.","user":{"login":"lgautier","id":650866,"avatar_url":"https://avatars.githubusercontent.com/u/650866?v=3","gravatar_id":"","url":"https://api.github.com/users/lgautier","html_url":"https://github.com/lgautier","followers_url":"https://api.github.com/users/lgautier/followers","following_url":"https://api.github.com/users/lgautier/following{/other_user}","gists_url":"https://api.github.com/users/lgautier/gists{/gist_id}","starred_url":"https://api.github.com/users/lgautier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lgautier/subscriptions","organizations_url":"https://api.github.com/users/lgautier/orgs","repos_url":"https://api.github.com/users/lgautier/repos","events_url":"https://api.github.com/users/lgautier/events{/privacy}","received_events_url":"https://api.github.com/users/lgautier/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"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},"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":115,"closed_issues":41,"state":"open","created_at":"2014-08-26T20:16:29Z","updated_at":"2015-08-15T17:37:51Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2015-08-15T17:13:38Z","updated_at":"2015-08-15T20:35:47Z","closed_at":null,"body":"The example below should be self-explanatory:\r\n\r\n```r\r\n> require(\"dplyr\")\r\nLoading required package: dplyr\r\n\r\nAttaching package: ‘dplyr’\r\n\r\nThe following objects are masked from ‘package:stats’:\r\n\r\n    filter, lag\r\n\r\nThe following objects are masked from ‘package:base’:\r\n\r\n    intersect, setdiff, setequal, union\r\n\r\n> my_mean <- function(x) {\r\n+   mean(x)\r\n+ }\r\n> mtcars %>% group_by(gear) %>% summarize(mean_hp=my_mean(hp))\r\nSource: local data frame [3 x 2]\r\n\r\n  gear  mean_hp\r\n1    3 176.1333\r\n2    4  89.5000\r\n3    5 195.6000\r\n> mtcars %>% group_by(gear) %>% summarize_(mean_hp=\"my_mean(hp)\")\r\nError: could not find function \"my_mean\"\r\n```\r\n\r\n```r\r\n> sessionInfo()\r\nR version 3.2.2 Patched (2015-08-15 r69082)\r\nPlatform: x86_64-pc-linux-gnu (64-bit)\r\nRunning under: Ubuntu 15.04\r\n\r\nlocale:\r\n [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C              \r\n [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8    \r\n [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8   \r\n [7] LC_PAPER=en_US.UTF-8       LC_NAME=C                 \r\n [9] LC_ADDRESS=C               LC_TELEPHONE=C            \r\n[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       \r\n\r\nattached base packages:\r\n[1] stats     graphics  grDevices utils     datasets  methods   base     \r\n\r\nother attached packages:\r\n[1] dplyr_0.4.2\r\n\r\nloaded via a namespace (and not attached):\r\n[1] lazyeval_0.1.10 magrittr_1.5    R6_2.1.0        assertthat_0.1 \r\n[5] parallel_3.2.2  DBI_0.3.1       tools_3.2.2     Rcpp_0.12.0  \r\n```"},"comment":{"url":"https://api.github.com/repos/hadley/dplyr/issues/comments/131445247","html_url":"https://github.com/hadley/dplyr/issues/1323#issuecomment-131445247","issue_url":"https://api.github.com/repos/hadley/dplyr/issues/1323","id":131445247,"user":{"login":"lgautier","id":650866,"avatar_url":"https://avatars.githubusercontent.com/u/650866?v=3","gravatar_id":"","url":"https://api.github.com/users/lgautier","html_url":"https://github.com/lgautier","followers_url":"https://api.github.com/users/lgautier/followers","following_url":"https://api.github.com/users/lgautier/following{/other_user}","gists_url":"https://api.github.com/users/lgautier/gists{/gist_id}","starred_url":"https://api.github.com/users/lgautier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lgautier/subscriptions","organizations_url":"https://api.github.com/users/lgautier/orgs","repos_url":"https://api.github.com/users/lgautier/repos","events_url":"https://api.github.com/users/lgautier/events{/privacy}","received_events_url":"https://api.github.com/users/lgautier/received_events","type":"User","site_admin":false},"created_at":"2015-08-15T20:35:47Z","updated_at":"2015-08-15T20:35:47Z","body":"I first thought so but after following a little what the code is doing (and trying to guess what it was meant to do):\r\n- I am not quite sure about what `lazyeval` is really meant to be/do\r\n- The issue might with `dplyr` and the way it is trying to handle strings as if they were language objects."}}