{"action":"created","issue":{"url":"https://api.github.com/repos/bleutner/RStoolbox/issues/5","repository_url":"https://api.github.com/repos/bleutner/RStoolbox","labels_url":"https://api.github.com/repos/bleutner/RStoolbox/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/bleutner/RStoolbox/issues/5/comments","events_url":"https://api.github.com/repos/bleutner/RStoolbox/issues/5/events","html_url":"https://github.com/bleutner/RStoolbox/issues/5","id":131274760,"number":5,"title":"I transfer an issue related to memory leak","user":{"login":"datagistips","id":1808948,"avatar_url":"https://avatars.githubusercontent.com/u/1808948?v=3","gravatar_id":"","url":"https://api.github.com/users/datagistips","html_url":"https://github.com/datagistips","followers_url":"https://api.github.com/users/datagistips/followers","following_url":"https://api.github.com/users/datagistips/following{/other_user}","gists_url":"https://api.github.com/users/datagistips/gists{/gist_id}","starred_url":"https://api.github.com/users/datagistips/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/datagistips/subscriptions","organizations_url":"https://api.github.com/users/datagistips/orgs","repos_url":"https://api.github.com/users/datagistips/repos","events_url":"https://api.github.com/users/datagistips/events{/privacy}","received_events_url":"https://api.github.com/users/datagistips/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-02-04T08:10:37Z","updated_at":"2016-02-05T07:12:50Z","closed_at":"2016-02-04T13:14:49Z","body":"Hi,\r\n\r\nFor one purpose, I had to deploy an R script including RStoobox with an execuatble windows batch to many users.\r\n\r\nI am french and I noticed that the printed accents like é were not displayed well after RStoobox was loaded.\r\n\r\nI contacted an R forum to explain my problem. One person made tests to see what was going on.\r\n\r\nShe wrote the following script named bugged.R\r\n\r\n```\r\ncat(\"\\n\\nà â ï î é è ô ü ç\\n\\n\")\r\nrequire(\"RStoolbox\")\r\ncat(\"\\n\\nà â ï î é è ô ü ç\\n\\n\")\r\n```\r\n\r\n She tested the code against valgrind\r\n`R -d \"valgrind --leak-check=full --show-reachable=yes --xml=yes --xml-file=valgrind_out.xml\" -f bugged.R`\r\n\r\n`grep '<kind>' valgrind_out.xml valgrind_out_good.xml | uniq`\r\n\r\nAnd it gave the following output \r\n```\r\nvalgrind_out.xml:  <kind>Leak_StillReachable</kind>\r\nvalgrind_out.xml:  <kind>Leak_DefinitelyLost</kind>\r\nvalgrind_out.xml:  <kind>Leak_StillReachable</kind>\r\nvalgrind_out.xml:  <kind>Leak_PossiblyLost</kind>\r\nvalgrind_out.xml:  <kind>Leak_StillReachable</kind>\r\nvalgrind_out_good.xml:  <kind>Leak_StillReachable</kind>\r\nvalgrind_out_good.xml:  <kind>Leak_PossiblyLost</kind>\r\nvalgrind_out_good.xml:  <kind>Leak_StillReachable</kind>\r\n```\r\n\r\nTo quote her, she said Leak_DefinietelyLost was a leak of memory and she advised me to warn you about this issue.\r\n\r\nHere is the forum [link ](http://www.developpez.net/forums/d1564087/autres-langages/autres-langages/r/rscript-batch-e-accent-aigue/)\r\n\r\nRStoolbox is an awesome package"},"comment":{"url":"https://api.github.com/repos/bleutner/RStoolbox/issues/comments/180231931","html_url":"https://github.com/bleutner/RStoolbox/issues/5#issuecomment-180231931","issue_url":"https://api.github.com/repos/bleutner/RStoolbox/issues/5","id":180231931,"user":{"login":"datagistips","id":1808948,"avatar_url":"https://avatars.githubusercontent.com/u/1808948?v=3","gravatar_id":"","url":"https://api.github.com/users/datagistips","html_url":"https://github.com/datagistips","followers_url":"https://api.github.com/users/datagistips/followers","following_url":"https://api.github.com/users/datagistips/following{/other_user}","gists_url":"https://api.github.com/users/datagistips/gists{/gist_id}","starred_url":"https://api.github.com/users/datagistips/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/datagistips/subscriptions","organizations_url":"https://api.github.com/users/datagistips/orgs","repos_url":"https://api.github.com/users/datagistips/repos","events_url":"https://api.github.com/users/datagistips/events{/privacy}","received_events_url":"https://api.github.com/users/datagistips/received_events","type":"User","site_admin":false},"created_at":"2016-02-05T07:12:50Z","updated_at":"2016-02-05T07:12:50Z","body":"Ok thanks I understand now\n\nThanks for the awesome package\n\nI used it to make a script that with spgrass, rgeos also, detects all the\nblue pixels on RGB topo maps so as to extract rivers as vectors and feed an\ninventory of rivers subject to water policies. It will be useful for the\nnational french agencies who depend from the Ministry of Ecology, for whom\nI work\nLe 4 févr. 2016 19:48, \"Benjamin Leutner\" <notifications@github.com> a\nécrit :\n\n> rgeos is imported by RStoolbox, which means its functions are available\n> internally for RStoolbox, i.e. inside the RStoolbox *namespace* but are\n> not available globally, i.e. to you. Thus, if you want to use rgeos, you'd\n> still call library(rgeos) yourself (this is called *attaching* the\n> package to the global search path).\n>\n> If you look at the DESCRIPTION file of any package you see all packages\n> which are imported fully or partially under IMPORTS. Contrastingly,\n> everything that's listed under DEPENDS behaves as if you would call\n> library(package) yourself.\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/bleutner/RStoolbox/issues/5#issuecomment-179997061>.\n>\n"}}