Skip to content

Two versions

courtiol edited this page Nov 20, 2016 · 3 revisions

Swapping between stable IsoriX and its development version

It is possible to have two versions of IsoriX (or in fact two versions of any package) installed in your system simultaneously and to swap from one version to another effortlessly using the package devtools.

Installation

First, install the stable version of IsoriX as you would normally do:

install.packages("IsoriX")

Second, install the development version within the dev_mode:

library(devtools)
dev_mode(on=TRUE)
install_github("courtiol/IsoriX_project/IsoriX")
dev_mode(on=FALSE)

Note that by default the path used by devtools may be inappropriate but I did not find a way to change it without having to then specify it all the time to load the library. So for now, let's keep it simple.

Usage

To use the stable version of IsoriX, just do:

library(IsoriX)

OR, to use the development version of IsoriX, just do:

devtools::dev_mode(on=TRUE)
library(IsoriX)

For the time being IsoriX does not detach properly, so it means that you will have to restart R if you want to swap from one version to the other.