Course
Developing R Packages
Create Your Free Account
or
By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.Loved by learners at thousands of companies
Training 2 or more people?
Try DataCamp for BusinessCourse Description
Discover the Benefits of Package Creation
Creating a package allows you to document your functions, enhancing their quality. It provides a formal structure for your code and analyses, enabling function improvement while tests verify no previous functionality is disrupted.Practice Using R Package Development Tools
This course will guide you through these concepts, and as a bonus, you'll develop your own package focused on unit conversion. You'll learn how to use the devtools, usethis, roxygen2, available, and testthat packages as well as rmarkdown to speed up and improve your package development workflow.Experience the Power of R Package Development
Get ready to dive into the dynamic world of R package development and empower yourself with a valuable toolset that can greatly enhance your data analysis journey!Prerequisites
Introduction to Writing Functions in RCreating R Packages: From Data to Functions
Designing R Packages: Package Naming and Dependencies
Package Documentation: Generating Help Files and Vignettes
Testing R Packages: Using Unit Tests and Robust Checks
Complete
Earn Statement of Accomplishment
Add this credential to your LinkedIn profile, resume, or CVShare it on social media and in your performance reviewEnroll Now
FAQs
What tools and packages will I use to develop an R package?
You will use devtools for building and installing, usethis for package scaffolding, roxygen2 for documentation, testthat for unit testing, and rmarkdown for vignettes.
Will I create a complete R package from scratch in this course?
Yes. You will build a package skeleton, add functions and data, write documentation and vignettes, implement unit tests, and install the package locally.
What are DESCRIPTION and NAMESPACE files and why do they matter?
DESCRIPTION defines your package metadata and dependencies, while NAMESPACE controls which functions are exported. Both are critical structural files you will learn to configure.
Does the course cover how to manage CRAN dependencies?
Yes. Chapter 2 teaches you how to handle CRAN package dependencies, choose a license, and follow best practices for structuring code within the R directory.
Why should I create an R package instead of using scripts?
Packages improve code organization, reproducibility, collaboration, and sharing. The course explains these advantages and shows how packaging elevates your workflow.
Join over 19 million learners and start Developing R Packages today!
Create Your Free Account
or
By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.Grow your data skills with DataCamp for Mobile
Make progress on the go with our mobile courses and daily 5-minute coding challenges.