Install LINDA for R

By: | Comments: 1 Comment

Posted in categories: Computer Tips, Work related

under su:
mkdir ~/.R
echo “CPPFLAGS=-fpermissive” >> ~/.R/Makevars
ln -s /location/of/LINDA /usr/local/
R
in “R”:
install.packages(“Rcpp”)
install.packages(“magrittr”)
install.packages(“drat”)
drat::addRepo(“ANTs-R”)
install.packages(“ANTsR”)
install.packages(“randomForest”)
source(‘/usr/local/LINDA/linda_predict.R’)
q()

One Comment

  • leizhou says:

    The “ANTs-R” repo has too low version.
    Here is the alternative:
    source(“https://neuroconductor.org/neurocLite.R”)
    neuro_install(“ITKR”, release = “stable”)
    neuro_install(“ANTsR”, release = “stable”)

Leave a Reply