dlab-berkeley / R-package-development

R package development workshop

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

R Package Development Workshop

by Jae Yeon Kim

File an issue if you have problems, questions or suggestions.

Overview

Developing your own R package is a great way to reuse and distribute your R code. The workshop aims to demonstrate that developing and distributing an R package is easy to do, if you know how to write functions and use Git and GitHub.

Learning objectives

  • Developing your first and minimally viable R package

Prerequisites

I assume students have familiarity R and Git and GitHub.

If you haven't done, please install Git and sign up a new GitHub account.

Setup

Please install required packages manually before attending the workshop:

# package manager
install.packages("pacman")
library(pacman)

# install pkgs
pacman::p_load(
    devtools, # key package 
    usethis, # workflow management 
    testthat, # for testing 
    roxygen2, # for documentation 
    pkgdown # to build a package website
)

References

This work is licensed under a Creative Commons Attribution 4.0 International License.

About

R package development workshop

License:Other


Languages

Language:HTML 99.9%Language:R 0.1%Language:Rebol 0.0%