First steps towards my first real R package (CC267)

Описание к видео First steps towards my first real R package (CC267)

Picking a name for an R package is a bit like picking a name for your kid. What if I screw up? We have time to finalize the name, so let me know if you don't like what I come up with. This video gives some explanation for the name that I have settled on for now. After picking a name, I create a skeleton for the package including getting it up on GitHub, creating a README, setting up tests, and roughing in documentation. Thankfully, Hadley Wickham and Jenny Bryan have removed a lot of the pain of pulling off these steps with their book R Packages. I'll apply the first chapter of their book to start the development of my R package. We'll use a number of functions from the devtools, usethis, and testthat, packages to develop the skeleton.

If you want to get a phyiscal copy of R Packages: https://amzn.to/43pMR8L
If you want a free, online version of R packages: https://r-pkgs.org/

You can find my blog post for this episode at https://www.riffomonas.org/code_club/....

#R #package #devtools #usethis #testtaht #git #Rstats #github

Support Riffomonas by becoming a Patreon member!
  / riffomonas  

Want more practice on the concepts covered in Code Club? You can sign up for my weekly newsletter at https://shop.riffomonas.org/youtube to get practice problems, tips, and insights.

If you're interested in purchasing a video workshop be sure to check out https://riffomonas.org/workshops/

You can also find complete tutorials for learning R with the tidyverse using...
Microbial ecology data: https://www.riffomonas.org/minimalR/
General data: https://www.riffomonas.org/generalR/

0:00 Introduction
2:32 Picking a name for our package
10:21 Creating phylotyper package skeleton
12:03 Setting up git and GitHub
15:03 Adding first drafts of documentation
18:44 Creating testthat skeleton
19:19 Checking package and resolving issues

Комментарии

Информация по комментариям в разработке