{"action":"created","issue":{"url":"https://api.github.com/repos/randy3k/R-Box/issues/54","labels_url":"https://api.github.com/repos/randy3k/R-Box/issues/54/labels{/name}","comments_url":"https://api.github.com/repos/randy3k/R-Box/issues/54/comments","events_url":"https://api.github.com/repos/randy3k/R-Box/issues/54/events","html_url":"https://github.com/randy3k/R-Box/issues/54","id":104537303,"number":54,"title":"set working directory automatically","user":{"login":"smartinsightsfromdata","id":3786727,"avatar_url":"https://avatars.githubusercontent.com/u/3786727?v=3","gravatar_id":"","url":"https://api.github.com/users/smartinsightsfromdata","html_url":"https://github.com/smartinsightsfromdata","followers_url":"https://api.github.com/users/smartinsightsfromdata/followers","following_url":"https://api.github.com/users/smartinsightsfromdata/following{/other_user}","gists_url":"https://api.github.com/users/smartinsightsfromdata/gists{/gist_id}","starred_url":"https://api.github.com/users/smartinsightsfromdata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smartinsightsfromdata/subscriptions","organizations_url":"https://api.github.com/users/smartinsightsfromdata/orgs","repos_url":"https://api.github.com/users/smartinsightsfromdata/repos","events_url":"https://api.github.com/users/smartinsightsfromdata/events{/privacy}","received_events_url":"https://api.github.com/users/smartinsightsfromdata/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-02T17:51:50Z","updated_at":"2015-10-02T18:07:07Z","closed_at":null,"body":"When I use SublimeREPL: R (\"driven\" by R-BOX of course), I manage to tell it to use the current folder as home folder.  It saves a lot of confusion. The setting is `\"cwd\": \"$folder\",`.\r\n\r\nSadly I haven't found how to do the same in RBox when using the R app (I'm using OS X).\r\n\r\nIs it possible, and if yes, how?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/randy3k/R-Box/issues/comments/145108555","html_url":"https://github.com/randy3k/R-Box/issues/54#issuecomment-145108555","issue_url":"https://api.github.com/repos/randy3k/R-Box/issues/54","id":145108555,"user":{"login":"smartinsightsfromdata","id":3786727,"avatar_url":"https://avatars.githubusercontent.com/u/3786727?v=3","gravatar_id":"","url":"https://api.github.com/users/smartinsightsfromdata","html_url":"https://github.com/smartinsightsfromdata","followers_url":"https://api.github.com/users/smartinsightsfromdata/followers","following_url":"https://api.github.com/users/smartinsightsfromdata/following{/other_user}","gists_url":"https://api.github.com/users/smartinsightsfromdata/gists{/gist_id}","starred_url":"https://api.github.com/users/smartinsightsfromdata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smartinsightsfromdata/subscriptions","organizations_url":"https://api.github.com/users/smartinsightsfromdata/orgs","repos_url":"https://api.github.com/users/smartinsightsfromdata/repos","events_url":"https://api.github.com/users/smartinsightsfromdata/events{/privacy}","received_events_url":"https://api.github.com/users/smartinsightsfromdata/received_events","type":"User","site_admin":false},"created_at":"2015-10-02T18:07:07Z","updated_at":"2015-10-02T18:07:07Z","body":"First create a project in Sublime Text in a folder foo.\r\nOpen a file, as R extended (even without saving the file).\r\n\r\nIn REPL R, thanks to the setting that I mentioned above, by default the current working directory (cdw) is set to the level of the folder foo. \r\nIt makes Sublime Text work with projects in the same way as Studio does (the setting of wd is totally transparent to the user and I can refer to any subfolder with indirect addressing, e.g.  `./data/somefile.csv`)\r\n\r\n@hafen code (that I confess I haven't tried yet but is on my todo list!) should be doing something similar for R terminal (i.e. when we send the code to the R UI): automagically the wd is set to the folder level.\r\n\r\nI have never used `CMD+\\` but it seems to be trying to save a file?"}}