Installation

Installing R and RStudio

To work with the goFlux package, you’ll need to install R and RStudio. Both programs are free and easy to download. For an easy step by step, follow the procedure described here.

Installing goFlux from GitHub

To install a package from GitHub, one can use the package devtools (or remotes) from the CRAN:

if (!require("devtools", quietly = TRUE)) install.packages("devtools")

Then, install the goFlux package from GitHub. If it is not the first time you install the package, it must first be detached before being updated.

try(detach("package:goFlux", unload = TRUE), silent = TRUE)
devtools::install_github("Qepanna/goFlux")
Important

The package is constantly being updated with new functions or de-bugging. To make sure that you are using the latest version, re-install the package every time you use it.

Warning

If prompted, it is recommended to update any pre-installed packages. The functioning of the package depends on many other packages (AICcmodavg, data.table, dplyr, ggnewscale, ggplot2, ggstar, graphics, grDevices, grid, gridExtra, lubridate, minpack.lm, msm, pbapply, plyr, purrr, rjson, rlist, SimDesign, stats, stringr, tibble, tidyr, toOrdinal, utils), which will be installed when installing goFlux.

Once installed, load the package goFlux:

library(goFlux)

Other required packages

Other packages from the CRAN are required to run the examples on this website.

# Install packages
install.packages("dplyr")
install.packages("purrr")
install.packages("readxl")
install.packages("openxlsx")
# Load packages
library(dplyr)
library(purrr)
library(readxl)
library(openxlsx)