Basic Installation

g2r is not yet on CRAN, it can be obtained from Github.

Remotes

# install.packages("remotes")
remotes::install_github("devOpifex/g2r")

Devtools

# install.packages("devtools")
devtools::install_github("devOpifex/g2r")

Pak

# install.packages("pak")
pak::pkg_install("devOpifex/g2r")

Full Installation

Numerous figures depend on other packages (e.g.: maps & networks) but are only installed optionally, to install all of them includes “Suggests.”

Remotes

# install.packages("remotes")
remotes::install_github(
  "devOpifex/g2r",
  dependencies = c("Imports", "Suggests")
)

Devtools

# install.packages("devtools")
devtools::install_github(
  "devOpifex/g2r",
  dependencies = c("Imports", "Suggests")
)

alter

Numerous figures internally depend on other packages, namely the alter package, you will be prompted to install it if is not found on your machine.

Alter requires the V8 engine and corresponding V8 package.

V8

Remotes

# install.packages("remotes")
remotes::install_github("devOpifex/alter")

Devtools

# install.packages("devtools")
devtools::install_github("devOpifex/alter")

Pak

# install.packages("pak")
pak::pkg_install("devOpifex/alter")