Get access to all lessons in this course.
-
Setup packages
- devtools and usethis
- Package names and authors
- Choose a license
- Setup git + GitHub
-
Write code
- Writing functions
- Adding functions to our package
- Using other packages
- Packages so good they get their own functions
- Organizing .R files
-
Document
- roxygen2: In-Line Documentation for R
- Argument descriptions and examples
- Helper functions
- Joining documentation
-
Test
- Unit tests for R
- Organizing tests
- R CMD Check
- Types of Test Files
- Test Coverage
-
Teach
- Examples
- README
- Spellcheck
-
Add data and files
- Store data and files
- Include data for tests and create RMarkdown templates
- Create other templates
- Launch and store Shiny apps
- Citations, ignoring files, and including add-ins
Package Development with R
Package names and authors
This lesson is locked
This lesson is called Package names and authors, part of the Package Development with R course. This lesson is called Package names and authors, part of the Package Development with R course.
Transcript
Click on the transcript to go to that point in the video. Please note that transcripts are auto generated and may contain minor inaccuracies.
Your Turn
Working in the exercises.Rmd file:
Add a new author to avalanchr using desc::desc_add_author(). Set given to “Barret”, family to “Wallace”, and role to “aut”.
In DESCRIPTION, change the title to “Tools for the Avalanche Data Science Team”
Change the Description field to “A set of tools to use within the Avalance Data Science team. This package contains functions for connecting to databases, R markdown templates, ggplot2 themes, and more.”
Run use_tidy_description() to clean up the file.
Learn More
The best place to learn more about these packages is the Metadata chapter of the R Packages book.
The Naming Things blog post mentioned is here.
And you can learn more about the available
package on GitHub.
The desc
pacakge can be found here.
You need to be signed-in to comment on this post. Login.
Kirstin O'Dell
November 17, 2022
I got this error message when installing avalanchr: I'm using version 2022.07.1 build 554 of RStudio
Warning in install.packages : package ‘avalanchr’ is not available for this version of R
A version of this package for your version of R might be available elsewhere, see the ideas at https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installing-packages
Kirstin O'Dell
November 17, 2022
never mind- I figured it out, silly question sigh
David Keyes
November 17, 2022
No silly questions!