Skip to contents

The goal of demopkg is to illustrate how to build and publish an R package.

Installation

You can install the development version of demopkg from GitHub with:

# install.packages("pak")
pak::pak("danielinteractive/demopkg")

Example

This is a basic example which shows you how to solve a common problem:

library(demopkg)

print_hello()
#> [1] "Hello, world!"
sum_two_numbers(4, 1)
#> [1] 5