
Occasionally, the stars don’t line up perfectly and an RStudio user, or any other user that needs a particular version of a CRAN package for some reason, may have to take some action. However, introducing the discipline of a fixed repository into the RStudio workflow is not completely frictionless. This provides an enormous advantage for corporations and collaborating teams of R programmers who can be sure that they are at least starting off on the same page, all working with the same CRAN release and a consistent view of the universe of R packages. Everyone who downloads MRO is guaranteed to start from a common baseline that reflects CRAN and all of its packages as they existed at a particular point in time. MRO 3.2.3, for example, points to CRAN as it was on January 1, 2016. (You can browse through the snapshots back to Septemfrom the CRAN Time Machine.) Each MRO release is pre-configured to point to a particular CRAN snapshot. Every day, at precisely midnight UTC, the infrastructure that supports the MRO distribution takes a snapshot of CRAN and stores it on Microsoft’s MRAN site. One feature of MRO that dovetails nicely with RStudio is that way that MRO is tied to a fixed repository. If RStudio is not already pointing to MRO (like it is in the screen capture) browse to it, and click "OK". You should see a couple of pop-up windows like the screen capture below. After you have installed MRO on your system, open RStudio, go to the "Tools" tab at the top, and select "Global Options".
#R studio vs r how to#
Before elaborating on this theme, I should just make it clear how to select MRO from the RStudio IDE. Together, MRO and RStudio they make a powerful combination.


#R studio vs r code#
RStudio, being much more than a simple IDE, provides several features such as the tight integration knitr, RMarkdown and Shiny that promote literate programming, the creation of reproducible code as well as sharing and collaboration. MRO is a downstream distribution of open source R that supports multiple operating systems and provides features that enhance the performance and reproducible use of the R language. A frequent question that we get here at Microsoft about MRO ( Microsoft R Open) is: can be used with RStudio? The short answer is absolutely yes! In fact, more than just being compatible, MRO is the perfect complement for the RStudio environment.
