Cours
Developing R Packages
IntermédiaireNiveau de compétence
Actualisé 01/2026RProgramming4 h15 vidéos56 Exercices4,550 XP2,335Certificat de réussite.
Créez votre compte gratuit
ou
En continuant, vous acceptez nos Conditions d'utilisation, notre Politique de confidentialité et le fait que vos données seront hébergées aux États-Unis.Apprécié par des utilisateurs provenant de milliers d'entreprises
Former 2 personnes ou plus ?
Essayez DataCamp for BusinessDescription du cours
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!Prérequis
Introduction to Writing Functions in R1
Creating R Packages: From Data to Functions
Dive into the essentials of R package construction, from understanding the architecture, the critical R and man directories, to the significance of the DESCRIPTION and NAMESPACE files. Get hands-on with the usethis package as you create your own package skeleton and include data. Strengthen your R function writing skills, grasp best practices for package development, and get comfortable saving functions to a file. Finally, install your package locally using devtools.
2
Designing R Packages: Package Naming and Dependencies
Learn the advantages of creating packages versus using scripts, exploring the impact on code organization, reproducibility, collaboration, and sharing. Discover effective strategies for structuring code and functions within the R directory, and choosing an appropriate name and license for your package. Finally, you’ll learn how to manage CRAN package dependencies.
3
Package Documentation: Generating Help Files and Vignettes
Harness the power of examples in documentation by creating function examples with roxygen2. Understand the significance of examples in clarifying function behavior and identifying key components of a well-documented R function. Explore the purpose of vignettes in R package documentation and learn best practices for creating engaging vignettes and evaluating their content and quality through metadata analysis.
4
Testing R Packages: Using Unit Tests and Robust Checks
Identify why the unit tests are important to package development and maintenance and learn how to implement the testthat package for unit tests. Convert R examples into expectations to build your unit test knowledge. You’ll then gain an understanding on how to document your package data and run some final checks to ensure you have developed a robust R package.
Developing R Packages
Cours terminé
Obtenez un certificat de réussite
Ajoutez cette certification à votre profil LinkedIn, à votre CV ou à votre portfolioPartagez-la sur les réseaux sociaux et dans votre évaluation de performance
Inclus avecPremium or Teams
S'inscrire MaintenantRejoignez plus de 19 millions d'utilisateurs et commencez Developing R Packages dès aujourd'hui !
Créez votre compte gratuit
ou
En continuant, vous acceptez nos Conditions d'utilisation, notre Politique de confidentialité et le fait que vos données seront hébergées aux États-Unis.