{"action":"opened","issue":{"url":"https://api.github.com/repos/SWS-Methodology/faoswsTrade/issues/10","repository_url":"https://api.github.com/repos/SWS-Methodology/faoswsTrade","labels_url":"https://api.github.com/repos/SWS-Methodology/faoswsTrade/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/SWS-Methodology/faoswsTrade/issues/10/comments","events_url":"https://api.github.com/repos/SWS-Methodology/faoswsTrade/issues/10/events","html_url":"https://github.com/SWS-Methodology/faoswsTrade/issues/10","id":153995533,"number":10,"title":"Error: C stack usage  {number} is too close to the limit","user":{"login":"sebastian-c","id":1818581,"avatar_url":"https://avatars.githubusercontent.com/u/1818581?v=3","gravatar_id":"","url":"https://api.github.com/users/sebastian-c","html_url":"https://github.com/sebastian-c","followers_url":"https://api.github.com/users/sebastian-c/followers","following_url":"https://api.github.com/users/sebastian-c/following{/other_user}","gists_url":"https://api.github.com/users/sebastian-c/gists{/gist_id}","starred_url":"https://api.github.com/users/sebastian-c/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebastian-c/subscriptions","organizations_url":"https://api.github.com/users/sebastian-c/orgs","repos_url":"https://api.github.com/users/sebastian-c/repos","events_url":"https://api.github.com/users/sebastian-c/events{/privacy}","received_events_url":"https://api.github.com/users/sebastian-c/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-10T12:35:56Z","updated_at":"2016-05-10T12:35:56Z","closed_at":null,"body":"At current, the Geonomenclature conversion causing the error:\r\n\r\n```\r\nError: C stack usage  13415522 is too close to the limit\r\n```\r\n\r\nI tried to see if it were a problem with the structure or the function. The following code passes:\r\n\r\n```\r\n> esdata_x <- as.data.table(esdata)\r\n> esdata_x[partner != 252, `:=`(reporter = convertGeonom2FAO(reporter), partner = convertGeonom2FAO(partner))]\r\n\r\nWarning message:\r\nIn convertGeonom2FAO(reporter) :\r\n  These ES Geonom codes were not converted to FAO area list: NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, N [... truncated]\r\n```\r\n\r\nI thought it might have been an issue with the size of the data, so I tried filtering before the conversion:\r\n\r\n```\r\n> esdata <- esdata %>%\r\n+   filter_(~partner != 252) %>%\r\n+   mutate_(reporter = ~convertGeonom2FAO(reporter),\r\n+           partner = ~convertGeonom2FAO(partner))\r\nError: C stack usage  13402454 is too close to the limit\r\n```\r\n\r\nI think this might be something we can't do with dplyr, unless I haven't reproduced the function correctly."}}