---
title: "Getting started"
output: rmarkdown::html_vignette
description: |
  An overview of installation procedures.
vignette: >
  %\VignetteIndexEntry{Getting started}
  %\VignetteEngine{knitr::rmarkdown}
  %\VignetteEncoding{UTF-8}
---

```{r, include=FALSE}
knitr::opts_chunk$set(tidy      = "styler",
                      fig.align = "center",
                      comment   = NA,
                      warning   = FALSE,
                      error     = FALSE,
                      message   = FALSE,
                      collapse  = TRUE,
                      out.width = "100%",
                      dev = "ragg_png", #<- prevent default Windows device to
                      # render plots
                      dpi       = 132,
                      echo      = FALSE)
```


```{r setup}
old_options <- options(scipen = 999, digits = 2)
on.exit(options(old_options))

olds <- options(rmarkdown.html_vignette.check_title = FALSE)
on.exit(options(olds))

library(Dyn4cast)
library(tidyverse, quietly = T)
```

## Installation

`Dyn4cast` is on CRAN and the development version is available. The package is very functional and stable and is actively being watched for any issue. Presently, it has passed all the tests it was subjected to.

<!--  

# Dyn4cast  <img src="../man/figures/logo.png" align="right" alt="" width="150" height="150" />  -->

<!-- badges: start -->

[![R-CMD-check](https://github.com/JobNmadu/Dyn4cast/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/JobNmadu/Dyn4cast/actions/workflows/R-CMD-check.yaml)
[![registry status badge](https://jobnmadu.r-universe.dev/badges/:registry)](https://jobnmadu.r-universe.dev/)
[![name status badge](https://jobnmadu.r-universe.dev/badges/:name)](https://jobnmadu.r-universe.dev/)
[![GitHub release (latest by date)](https://img.shields.io/github/v/release/JobNmadu/Dyn4cast?color=green)](https://github.com/JobNmadu/Dyn4cast/releases)
[![codecov](https://codecov.io/gh/JobNmadu/Dyn4cast/graph/badge.svg?token=RYV9KWHBN5)](https://app.codecov.io/gh/JobNmadu/Dyn4cast)
[![lifecycle: stable](https://img.shields.io/badge/lifecycle-stable-brightgreen.svg)](https://lifecycle.r-lib.org/articles/stages.html#stable)
[![Project Status: Active](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active)
[![downloads](https://cranlogs.r-pkg.org/badges/grand-total/Dyn4cast)](https://r-pkg.org/pkg/Dyn4cast)
<!-- badges: end -->

<!--
[![codecov](https://codecov.io/gh/JobNmadu/Dyn4cast/graph/badge.svg?token=RYV9KWHBN5)](https://codecov.io/gh/JobNmadu/Dyn4cast)

[![lifecycle](https://img.shields.io/badge/lifecycle-stable-brightgreen.svg)](https://lifecycle.r-lib.org/articles/stages.html#stable)

-->

The released version of _Dyn4cast_ can be installed from [CRAN](https://CRAN.R-project.org/package=Dyn4cast/index.html). The canonical form for  [CRAN](https://CRAN.R-project.org/package=Dyn4cast/index.html) is:

```
install.packages("Dyn4cast")
```

To install the development version of `Dyn4cast` from [GitHub](https://github.com/JobNmadu/Dyn4cast), use the following canonical form:
 
```{r github, echo = TRUE, eval = FALSE}

# install.packages("devtools")
pak::pak("JobNmadu/Dyn4cast")
```

The development version can also be installed through [r-universe](https://jobnmadu.r-universe.dev/Dyn4cast). Use the form:

```{r universe, echo = TRUE, eval = FALSE}

install.packages("Dyn4cast", repos = c("https://jobnmadu.r-universe.dev", "https://cloud.r-project.org"))
```

## Suggested packages

A number of other packages are required for the smooth running of the package and may need to be installed if not already installed on your machine. Some of the packages are listed below:

```{r install-suggested, echo = TRUE, eval = FALSE}
install.packages(c("lubridate", "tidyverse", "xlsx", "readxl", "rmarkdown",
                   "covr", "caret", "kableExtra", "knitr", "spelling",
                   "psych", "lifecycle", "MetBrewer", "data.table", "ggtext", 
                   "lubridate", "forecast", "MASS", "mlogit", "nnet", "betareg",
                   "mvProbit", "miscTools"))
```

## Citation

The citation information for this package can be obtained easily when you run `citation("Dyn4cast")` in your `R` console.

```{r citation, warning = FALSE}

citation("Dyn4cast")

```
