{"action":"created","issue":{"url":"https://api.github.com/repos/r-lib/rappdirs/issues/23","repository_url":"https://api.github.com/repos/r-lib/rappdirs","labels_url":"https://api.github.com/repos/r-lib/rappdirs/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/r-lib/rappdirs/issues/23/comments","events_url":"https://api.github.com/repos/r-lib/rappdirs/issues/23/events","html_url":"https://github.com/r-lib/rappdirs/issues/23","id":249338726,"number":23,"title":"Windows: appname double in user_config_dir","user":{"login":"surmann","id":4048472,"avatar_url":"https://avatars3.githubusercontent.com/u/4048472?v=4","gravatar_id":"","url":"https://api.github.com/users/surmann","html_url":"https://github.com/surmann","followers_url":"https://api.github.com/users/surmann/followers","following_url":"https://api.github.com/users/surmann/following{/other_user}","gists_url":"https://api.github.com/users/surmann/gists{/gist_id}","starred_url":"https://api.github.com/users/surmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/surmann/subscriptions","organizations_url":"https://api.github.com/users/surmann/orgs","repos_url":"https://api.github.com/users/surmann/repos","events_url":"https://api.github.com/users/surmann/events{/privacy}","received_events_url":"https://api.github.com/users/surmann/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-10T13:02:19Z","updated_at":"2018-02-17T03:22:23Z","closed_at":null,"author_association":"NONE","body":"Hallo,\r\n\r\nAn appname is shown twice when I use `user_config_dir` on my windows system:\r\n\r\n> packageVersion(\"rappdirs\")\r\n#[1] ‘0.3.1’\r\n> rappdirs::user_config_dir(\"mypackage\", expand = FALSE)\r\n#[1] \"C:\\\\\\\\Users\\\\\\\\name\\\\\\\\AppData\\\\\\\\Roaming\\\\\\\\mypackage\\\\\\\\mypackage\"\r\n\r\nMy linux systems show it only once. Is this correct?\r\n\r\nThanks!\r\n"},"comment":{"url":"https://api.github.com/repos/r-lib/rappdirs/issues/comments/366412369","html_url":"https://github.com/r-lib/rappdirs/issues/23#issuecomment-366412369","issue_url":"https://api.github.com/repos/r-lib/rappdirs/issues/23","id":366412369,"user":{"login":"trevorld","id":2433259,"avatar_url":"https://avatars1.githubusercontent.com/u/2433259?v=4","gravatar_id":"","url":"https://api.github.com/users/trevorld","html_url":"https://github.com/trevorld","followers_url":"https://api.github.com/users/trevorld/followers","following_url":"https://api.github.com/users/trevorld/following{/other_user}","gists_url":"https://api.github.com/users/trevorld/gists{/gist_id}","starred_url":"https://api.github.com/users/trevorld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trevorld/subscriptions","organizations_url":"https://api.github.com/users/trevorld/orgs","repos_url":"https://api.github.com/users/trevorld/repos","events_url":"https://api.github.com/users/trevorld/events{/privacy}","received_events_url":"https://api.github.com/users/trevorld/received_events","type":"User","site_admin":false},"created_at":"2018-02-17T03:22:23Z","updated_at":"2018-02-17T03:22:23Z","author_association":"CONTRIBUTOR","body":"Yes, this is the correct behaviour and is the same as the behaviour in the original python package: https://github.com/ActiveState/appdirs\r\n\r\nLinux (and OSX) uses directory ``appname`` (ignoring any ``appauthor`` argument) while Windows uses directory ``appauthor\\\\appname`` and the function ``user_config_dir`` assigns ``appname`` as the default argument for ``appauthor``.  If you don't want the directory name to repeat then don't forget to set the \"appauthor\" argument in your function call i.e.:\r\n\r\n    rappdirs::user_config_dir(\"mypackage\", \"packageauthor\", expand = FALSE)\r\n    #[1] \"C:\\\\Users\\\\name\\\\AppData\\\\Roaming\\\\packageauthor\\\\mypackage\""}}
{"actor":{"display_login":"trevorld"}}