Using the devtools
package, we can install from github
directly:
devtools::install_github("dekoning-lab/PalantiR")
First, clone the repository:
git clone https://github.com/dekoning-lab/PalantiR.git
Install the dependencies:
install.packages(c("RcppArmadillo", "htmlwidgets"))
On MacOS, it might be necessary to install a gfortran
compiler, for linear algebra libraries. See https://gcc.gnu.org/wiki/GFortranBinaries for downloads.
Calling plot
may produce a following warning:
Warning message:
In structure(x, class = unique(c("AsIs", oldClass(x)))) :
Calling 'structure(NULL, *)' is deprecated, as NULL cannot have attributes.
Consider 'structure(list(), *)' instead.
This is a resolved issue with htmlwdigets package. It did not seem to have made it to CRAN
yet. Until it does, install the package from github:
detach("package:htmlwidgets", unload=TRUE)
devtools::install_github("ramnathv/htmlwidgets")
If using RStudio, hit “Build & Reload”.
Otherwise, navigate to one directory above PalantiR, and run:
R CMD INSTALL --preclean --no-multiarch --with-keep.source PalantiR
Then, in a new R session, run:
library(PalantiR)
de Koning Lab. 2016-2017 lab.jasondk.io