Book Image

Mastering RStudio: Develop, Communicate, and Collaborate with R

4 (1)
Book Image

Mastering RStudio: Develop, Communicate, and Collaborate with R

4 (1)

Overview of this book

RStudio helps you to manage small to large projects by giving you a multi-functional integrated development environment, combined with the power and flexibility of the R programming language, which is becoming the bridge language of data science for developers and analyst worldwide. Mastering the use of RStudio will help you to solve real-world data problems. This book begins by guiding you through the installation of RStudio and explaining the user interface step by step. From there, the next logical step is to use this knowledge to improve your data analysis workflow. We will do this by building up our toolbox to create interactive reports and graphs or even web applications with Shiny. To collaborate with others, we will explore how to use Git and GitHub and how to build your own packages to ensure top quality results. Finally, we put it all together in an interactive dashboard written with R.
Table of Contents (17 chapters)
Mastering RStudio – Develop, Communicate, and Collaborate with R
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Preface
Index

Using Packrat with a project


During the creation of our package, we saw the option to use Packrat with this project. Packrat is a very important tool when you make your package as reproducible as possible. It basically stores all the packages needed and so creates a private package library. When you load this package, R will automatically restore the needed packages from this private library.

We can set up our project to use Packrat right when you create it. In the dialogue box we just have to check the Use packrat with this project checkbox. RStudio will then set up our private library and fill it with the packages.

When we look at the package pane, we can see the content of our packrat library. This private library has an extra column showing the version included in the private library and the source of this library.

In the screenshot, there are also packages included in the private library because Packrat was turned on in an existing project. You can do this in the project options by checking...