Direkt zum Inhalt
StartseiteR

Developing R Packages

Learn to develop R packages and boost your coding skills. Discover package creation benefits, practice with dev tools, and create a unit conversion package.

Kurs Kostenlos Starten
4 Stunden15 Videos56 Übungen

Kostenloses Konto erstellen

GoogleLinkedInFacebook

oder

Durch Klick auf die Schaltfläche akzeptierst du unsere Nutzungsbedingungen, unsere Datenschutzrichtlinie und die Speicherung deiner Daten in den USA.
Group

Trainierst du 2 oder mehr?

Versuchen DataCamp for Business

Beliebt bei Lernenden in Tausenden Unternehmen


Kursbeschreibung

The expansive ecosystem of R packages may seem daunting at first glance, but don't worry! Acquiring the skill to develop your own R package is invaluable, regardless of whether you collaborate on your code with others. With a range of modern tools and packages at your fingertips, it's simpler than ever.

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!
Für Unternehmen

Trainierst du 2 oder mehr?

Verschaffen Sie Ihrem Team Zugriff auf die vollständige DataCamp-Plattform, einschließlich aller Funktionen.
DataCamp Für UnternehmenFür eine maßgeschneiderte Lösung buchen Sie eine Demo.

In den folgenden Tracks

Zertifizierung verfügbar

Datenwissenschaftler/in in R

Gehe zu Track

R Entwickler

Gehe zu Track
  1. 1

    Creating R Packages: From Data to Functions

    Kostenlos

    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.

    Kapitel Jetzt Abspielen
    Components of an R package
    50 xp
    R package truths
    50 xp
    What's needed in all R packages?
    100 xp
    Required package components
    100 xp
    Data and R Markdown template in an R package
    50 xp
    Create an R package
    100 xp
    Add data to the R package
    100 xp
    Create an R package R Markdown template file
    100 xp
    R Markdown template file layout
    100 xp
    Building package functions
    50 xp
    R function for converting distances
    100 xp
    Install the R package and try it out
    100 xp
  2. 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.

    Kapitel Jetzt Abspielen
  3. 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.

    Kapitel Jetzt Abspielen
  4. 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.

    Kapitel Jetzt Abspielen
Für Unternehmen

Trainierst du 2 oder mehr?

Verschaffen Sie Ihrem Team Zugriff auf die vollständige DataCamp-Plattform, einschließlich aller Funktionen.

In den folgenden Tracks

Zertifizierung verfügbar

Datenwissenschaftler/in in R

Gehe zu Track

R Entwickler

Gehe zu Track

Mitwirkende

Collaborator's avatar
Dr. Chester Ismay
Collaborator's avatar
James Chapman
Collaborator's avatar
Rick Gaston

Voraussetzungen

Introduction to Writing Functions in R
Jasmin Ludolf HeadshotJasmin Ludolf

Data Science Content Developer, DataCamp

Mehr Anzeigen

Was sagen andere Lernende?

Melden Sie sich an 15 Millionen Lernende und starten Sie Developing R Packages Heute!

Kostenloses Konto erstellen

GoogleLinkedInFacebook

oder

Durch Klick auf die Schaltfläche akzeptierst du unsere Nutzungsbedingungen, unsere Datenschutzrichtlinie und die Speicherung deiner Daten in den USA.