library(g2r)

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")

Source

git clone https://github.com/devOpifex/g2r.git
cd ./g2r
make init

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

# Debian and Ubuntu
sudo apt-get install -y libv8-dev
# Mac
brew install v8
# Fedora (with EPEL release)
sudo yum install v8-devel

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")


devOpifex/g2r documentation built on Jan. 16, 2022, 12:36 a.m.