{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/10652","labels_url":"https://api.github.com/repos/apache/spark/issues/10652/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/10652/comments","events_url":"https://api.github.com/repos/apache/spark/issues/10652/events","html_url":"https://github.com/apache/spark/pull/10652","id":125503288,"number":10652,"title":"[SPARK-12699][SPARKR] R driver process should start in a clean state","user":{"login":"felixcheung","id":8969467,"avatar_url":"https://avatars.githubusercontent.com/u/8969467?v=3","gravatar_id":"","url":"https://api.github.com/users/felixcheung","html_url":"https://github.com/felixcheung","followers_url":"https://api.github.com/users/felixcheung/followers","following_url":"https://api.github.com/users/felixcheung/following{/other_user}","gists_url":"https://api.github.com/users/felixcheung/gists{/gist_id}","starred_url":"https://api.github.com/users/felixcheung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felixcheung/subscriptions","organizations_url":"https://api.github.com/users/felixcheung/orgs","repos_url":"https://api.github.com/users/felixcheung/repos","events_url":"https://api.github.com/users/felixcheung/events{/privacy}","received_events_url":"https://api.github.com/users/felixcheung/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-01-07T22:52:15Z","updated_at":"2016-01-20T04:37:02Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/10652","html_url":"https://github.com/apache/spark/pull/10652","diff_url":"https://github.com/apache/spark/pull/10652.diff","patch_url":"https://github.com/apache/spark/pull/10652.patch"},"body":"Currently we have R worker process launched with the --vanilla option that brings it up in a clean state (without init profile or workspace data, https://stat.ethz.ch/R-manual/R-devel/library/base/html/Startup.html). However, the R process for the Spark driver is not.\r\n\r\nWe should do that because\r\n1. That would make driver consistent with the worker process in R - for instance, a library might be load in driver but not worker\r\n2. Since SparkR depends on .libPath and .First() it could be broken by something in the user workspace, for example\r\n\r\nHere are the changes proposed:\r\n1. When starting `sparkR` shell (except: allow save/restore workspace, since the driver/shell is local)\r\n2. When launching R driver in cluster mode\r\n3. In cluster mode, when calling R to install shipped R package\r\n\r\nThis is discussed in PR #10171\r\n\r\n@shivaram @sun-rui "},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/173084751","html_url":"https://github.com/apache/spark/pull/10652#issuecomment-173084751","issue_url":"https://api.github.com/repos/apache/spark/issues/10652","id":173084751,"user":{"login":"sun-rui","id":2528327,"avatar_url":"https://avatars.githubusercontent.com/u/2528327?v=3","gravatar_id":"","url":"https://api.github.com/users/sun-rui","html_url":"https://github.com/sun-rui","followers_url":"https://api.github.com/users/sun-rui/followers","following_url":"https://api.github.com/users/sun-rui/following{/other_user}","gists_url":"https://api.github.com/users/sun-rui/gists{/gist_id}","starred_url":"https://api.github.com/users/sun-rui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sun-rui/subscriptions","organizations_url":"https://api.github.com/users/sun-rui/orgs","repos_url":"https://api.github.com/users/sun-rui/repos","events_url":"https://api.github.com/users/sun-rui/events{/privacy}","received_events_url":"https://api.github.com/users/sun-rui/received_events","type":"User","site_admin":false},"created_at":"2016-01-20T04:37:02Z","updated_at":"2016-01-20T04:37:02Z","body":"@felixcheung, yes, something like that"}}