Install LINDA for R
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
Leave a Reply
You must be logged in to post a comment.
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”)