Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Mastering RStudio: Develop, Communicate, and Collaborate with R

You're reading from   Mastering RStudio: Develop, Communicate, and Collaborate with R Harness the power of RStudio to create web applications, R packages, markdown reports and pretty data visualizations

Arrow left icon
Product type Paperback
Published in Dec 2015
Publisher Packt
ISBN-13 9781783982547
Length 348 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Toc

Table of Contents (12) Chapters Close

Preface 1. The RStudio IDE – an Overview FREE CHAPTER 2. Communicating Your Work with R Markdown 3. R Lesson I – Graphics System 4. Shiny – a Web-app Framework for R 5. Interactive Documents with R Markdown 6. Creating Professional Dashboards with R and Shiny 7. Package Development in RStudio 8. Collaborating with Git and GitHub 9. R for your Organization – Managing the RStudio Server 10. Extending RStudio and Your Knowledge of R Index

Building packages with RStudio


RStudio combines the power of devtools with its GUI, which makes the development of your own packages very easy and manageable with just a few clicks.

Creating a new package project with RStudio

To create a new package with RStudio, just click on File | New Project... and select New Directory.

Then you can select R Package from the upcoming menu:

Now you have to set the necessary parameters for your R package. These include the type of the package, the package name, the option to create a package based on source files, and to create the package project as a subdirectory of another directory.

Furthermore, you can check the options for creating a Git repository or for using Packrat with your project.

If you want to create a package just containing R code, you should select the type to be Package. However, if you want to create a package that also uses C++ code, you should choose Package w/ Rcpp as it automatically sets up all necessary dependencies for using the Rcpp...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime