Skip to content

2. Install gbtools package in R

kbseah edited this page Jun 28, 2018 · 8 revisions

Start R. Required packages are sp and plyr, which can be installed like so:

install.packages("sp")
install.packages("plyr")

Install with R package manager

Install the latest vesrion of the gbtools package in R from your local copy (found in the R_source_package folder of the repository, replace "x" with the current version number):

install.packages("/PATH/TO/gbtools_2.x.x.tar.gz",repos=NULL,type="source")

where /PATH/TO/ is replaced with the path to wherever you have the R source package.

Load the gbtools package with the library() command:

library(gbtools)

With this option, you can access the built-in documentation with the help(<function name>) or ?<function name> commands in R, and also easily remove or update the package with new versions.

Install directly from GitHub

You can install the latest version directly from GitHub using install_github from the devtools package.

install.packages("devtools") # Install devtools if you don't already have it
library(devtools)
install_github("kbseah/genome-bin-tools/gbtools")

Next step

Import your data