YouTube06 Jun 2024
51m

CS50R - Lecture 7 - Packaging Programs

Podcast cover

CS50

The lecture focuses on how to package programs in R, specifically creating a package called "DuckSay." The goal of DuckSay is to take a character string as input and output a textual representation of a duck "saying" that string. The discussion covers the structure of R packages, including the DESCRIPTION file, NAMESPACE, man folder for documentation, and the R folder for function definitions. It also introduces the "devtools" package, which helps in writing packages, unit testing with "testthat," and structuring package components. The lecture further explains how to document functions using R's markup language and how to build and install the package for sharing.

Outlines

Part 1: Introduction, Package Structure

Part 2: Development Tools, Testing

Part 3: Implementation, Documentation

Part 4: Building, Iteration, Sharing

Sign in to continue reading, translating and more.

Open full episode in Podwise