You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Once that is complete, a GitHub repo can be connected by creating a new project from the Project dropdown menu at the top right of RStudio. Select *Version Control*, and on the next window select the git repo that you want to work with on Databricks. When you click *Create Project*, the repo will be cloned to the subdirectory you chose on the driver node and git integration will be visible from RStudio.
88
+
89
+
At this point you can resume your usual workflow of checking out branches, committing new code, and pushing changes to the remote repo.
90
+
91
+
#### Persisting R Project Files in DBFS
92
+
93
+
Instead of GitHub, you can also use the Databricks File System (DBFS) to persist files associated with the R project. Since DBFS enables users to treat buckets in object storage as local storage by prepending the write path with `/dbfs/`, this is very easy to do with the RStudio terminal window or with `system()` commands.
94
+
95
+
For example, an entire R project can be copied into DBFS via a single `cp` command.
Databricks also supports integration with Rstudio Desktop using Databricks Connect. Please refer to the [PDF](https://github.com/marygracemoesta/R-User-Guide/blob/master/Developing_on_Databricks/DB%20Connect%20with%20RStudio%20Dekstop.pdf) For step by step instructions.
91
104
92
105
## Differences in Integrations
93
106
When it comes to the two different integrations with Rstudio - the distinction between the two become prevalant when looking at the architecture. In the Rstudio Server integration, Rstudio lives inside the driver.
94
107
95
-
96
108
Where as Rstudio Desktop + DB Connect uses the local machine and the drive and submit queries to the nodes managed by the Databricks cluster.
97
109
98
110
## Gotchas
99
111
Something important to note when using the Rstudio integrations:
100
112
- Loss of notebook functionality: magic commands that work in Databricks notebooks, do not work within Rstudio
101
-
- As of September 2019, `sparklyr` is *not* supported using Rstudio Desktop + DB Connect
102
-
103
113
104
114
___
105
115
[Back to table of contents](https://github.com/marygracemoesta/R-User-Guide#contents)
0 commit comments