{"action":"created","issue":{"url":"https://api.github.com/repos/jcfaria/Vim-R-plugin/issues/196","labels_url":"https://api.github.com/repos/jcfaria/Vim-R-plugin/issues/196/labels{/name}","comments_url":"https://api.github.com/repos/jcfaria/Vim-R-plugin/issues/196/comments","events_url":"https://api.github.com/repos/jcfaria/Vim-R-plugin/issues/196/events","html_url":"https://github.com/jcfaria/Vim-R-plugin/issues/196","id":121708255,"number":196,"title":"Ignoring Environment Variables on Windows","user":{"login":"siqi-liu","id":8110187,"avatar_url":"https://avatars.githubusercontent.com/u/8110187?v=3","gravatar_id":"","url":"https://api.github.com/users/siqi-liu","html_url":"https://github.com/siqi-liu","followers_url":"https://api.github.com/users/siqi-liu/followers","following_url":"https://api.github.com/users/siqi-liu/following{/other_user}","gists_url":"https://api.github.com/users/siqi-liu/gists{/gist_id}","starred_url":"https://api.github.com/users/siqi-liu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/siqi-liu/subscriptions","organizations_url":"https://api.github.com/users/siqi-liu/orgs","repos_url":"https://api.github.com/users/siqi-liu/repos","events_url":"https://api.github.com/users/siqi-liu/events{/privacy}","received_events_url":"https://api.github.com/users/siqi-liu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-12-11T13:30:48Z","updated_at":"2015-12-11T22:49:47Z","closed_at":null,"body":"On Windows 8.1, when the environment variable HOME is set to be different from the default, if starting R alone (without Vim), HOME is correctly set, but if starting with Vim-R-plugin, it is the same as the default. Is this a bug or I missed something?\r\n\r\nP.S. I need to set this so that I can install the packages at a different location than the default. \r\n\r\nThanks in advance."},"comment":{"url":"https://api.github.com/repos/jcfaria/Vim-R-plugin/issues/comments/164070493","html_url":"https://github.com/jcfaria/Vim-R-plugin/issues/196#issuecomment-164070493","issue_url":"https://api.github.com/repos/jcfaria/Vim-R-plugin/issues/196","id":164070493,"user":{"login":"jalvesaq","id":891655,"avatar_url":"https://avatars.githubusercontent.com/u/891655?v=3","gravatar_id":"","url":"https://api.github.com/users/jalvesaq","html_url":"https://github.com/jalvesaq","followers_url":"https://api.github.com/users/jalvesaq/followers","following_url":"https://api.github.com/users/jalvesaq/following{/other_user}","gists_url":"https://api.github.com/users/jalvesaq/gists{/gist_id}","starred_url":"https://api.github.com/users/jalvesaq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jalvesaq/subscriptions","organizations_url":"https://api.github.com/users/jalvesaq/orgs","repos_url":"https://api.github.com/users/jalvesaq/repos","events_url":"https://api.github.com/users/jalvesaq/events{/privacy}","received_events_url":"https://api.github.com/users/jalvesaq/received_events","type":"User","site_admin":false},"created_at":"2015-12-11T22:49:47Z","updated_at":"2015-12-11T22:49:47Z","body":"Please, see the file r-plugin/windows.vim. `HOME` is set there. Currently, it is hardcoded as the Windows register value for \"Personal\" \"Shell Folders\". If I do not set it, it will be worse for most users because its value will be `C:\\Users\\<username>` which is different from the default value set by R. Ideally, I would unset it before starting R, but I do not know how to unset `HOME` in GVim. If nobody finds a solution for this, what I can do is create a new option for Windows: `vimrplugin_set_home_env`. If its value were 0, the plugin would not set `HOME`."}}