Getting started
This guide will walk you through the process of installing R and the BIGr package on your computer.
Installing R
R is a powerful, open-source programming language and software environment for statistical computing and graphics. You will need to install R before you can use the BIGr package.
Please follow the instructions for your operating system.
Windows
- Download R: Go to the Comprehensive R Archive Network (CRAN) website.
- Run the Installer: Click on the “Download R-X.X.X for Windows” link (the X’s will be the latest version number). Run the downloaded
.exe
file. - Follow the Setup Wizard:
- Select your preferred language.
- Read the license agreement and click “Next”.
- Choose an installation location or accept the default.
- Select the components to install (the defaults are usually sufficient).
- Accept the startup options or customize them if you are an advanced user.
- Choose a Start Menu folder.
- Select any additional tasks, like creating a desktop icon.
- Click “Install” and wait for the installation to complete.
- Click “Finish” to exit the setup wizard.
macOS
- Download R: Go to the Comprehensive R Archive Network (CRAN) website.
- Choose the Correct Package:
- For Macs with Apple Silicon (M1, M2, etc.), download the package for “Apple Silicon (arm64)”.
- For older Macs with Intel processors, download the package for “Intel 64-bit”.
- Run the Installer: Open the downloaded
.pkg
file. - Follow the Installation Steps:
- Click “Continue” through the welcome and license agreement screens.
- Agree to the software license agreement.
- Select the installation destination and click “Install”. You may be prompted to enter your password.
- Once the installation is complete, you can close the installer.
Linux
The installation process for Linux can vary depending on your distribution.
Verify Installation
To verify that R has been installed correctly, you can open a terminal (or the R console on Windows and macOS) and type:
1
R --version
This should print the installed R version.
Installing the BIGr R Package
Once you have R installed, you can install the BIGr package directly from the R console.
There are two primary methods for installing the BIGr package: from CRAN or from GitHub for the latest development version.
You will likely be prompted in the terminal to install the package dependencies or update any existing packages. You must select one of the options before the installation will proceed.
Option 1: Install from CRAN (Comprehensive R Archive Network)
This is the recommended method for most users as it provides the latest stable version of the package.
- Open your R console.
- Run the following command:
1
install.packages("BIGr")
Option 2: Install the Development Version from GitHub
If you need the absolute latest features and are comfortable with potentially less stable code, you can install the package from the Breeding Insight GitHub repository.
- Open your R console.
- You will first need to install the
remotes
andBiocManager
packages if you don’t already have them:1 2 3
if (!require("BiocManager", quietly = TRUE)) install.packages("BiocManager") install.packages("remotes")
- Install the BIGr package from GitHub:
1
BiocManager::install("Breeding-Insight/BIGr", dependencies = TRUE)
After the installation is complete, you can load the BIGr package into your R session to start using it:
1
library(BIGr)
You are now ready to use the functionalities provided by the BIGr package!