{"action":"opened","issue":{"url":"https://api.github.com/repos/cloudyr/rmote/issues/10","repository_url":"https://api.github.com/repos/cloudyr/rmote","labels_url":"https://api.github.com/repos/cloudyr/rmote/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/cloudyr/rmote/issues/10/comments","events_url":"https://api.github.com/repos/cloudyr/rmote/issues/10/events","html_url":"https://github.com/cloudyr/rmote/issues/10","id":297950474,"number":10,"title":"start_rmote(server_dir) doesn't seem to work with `~/some_path`","user":{"login":"lcolladotor","id":2288213,"avatar_url":"https://avatars2.githubusercontent.com/u/2288213?v=4","gravatar_id":"","url":"https://api.github.com/users/lcolladotor","html_url":"https://github.com/lcolladotor","followers_url":"https://api.github.com/users/lcolladotor/followers","following_url":"https://api.github.com/users/lcolladotor/following{/other_user}","gists_url":"https://api.github.com/users/lcolladotor/gists{/gist_id}","starred_url":"https://api.github.com/users/lcolladotor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lcolladotor/subscriptions","organizations_url":"https://api.github.com/users/lcolladotor/orgs","repos_url":"https://api.github.com/users/lcolladotor/repos","events_url":"https://api.github.com/users/lcolladotor/events{/privacy}","received_events_url":"https://api.github.com/users/lcolladotor/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-16T23:24:21Z","updated_at":"2018-02-16T23:24:21Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nWhile trying to get `rmote` working in an SGE cluster, I tried setting the `server_dir` argument to a value that would change by day and use a directory that could be accessed through multiple terminal sessions to SGE. So I tried setting `server_dir` to something like `server_dir = paste0('~/rmote/rmote_server_', Sys.Date())` and it initially seemed to work (`rmote` printed the message with the url) but eventually it wasn't working. That's why I changed my `.Rprofile` to use `/users/my_username/` instead of `~/` and it all worked after that point and now it also prints the `To stop the server` message. To make the difference in messages clear, I'm posting them here:\r\n\r\n## Failing with `~/`\r\n\r\n```R\r\nServing the directory /users/my_username/rmote/rmote_server_2018_02_16 at http://127.0.0.1:4321\r\n```\r\n\r\n## When it works:\r\n\r\n```R\r\nServing the directory /users/my_username/rmote/rmote_server_2018_02_16 at http://127.0.0.1:4321\r\nTo stop the server, run servr::daemon_stop(\"some_number\") or restart your R session\r\n```\r\n\r\nI ignore if that's something you would expect or if you meant to have it work with paths that include `~/`.\r\n\r\nBest,\r\nLeo"}}
{"actor":{"display_login":"lcolladotor"}}