The goal of changepoint2 is to ...
You can install the released version of changepoint2 from CRAN with:
install.packages("changepoint2")
This is a basic example which shows you how to solve a common problem:
library(changepoint2)
## basic example code