Posts

Showing posts from June, 2016

Getting R Ready for Neuroimaging

There already exist some pretty good instructions on how to install ANTsR here . I still have had some people I work with ask me how to install it because sometimes it can be a bit quirky. So I’m briefly going over a way you can download it yourself. Note that ANTsR is currently only available for Mac and Linux. ANTsR has the following dependencies. mydeps <- c( "Rcpp", "tools", "methods", "magrittr" ) install.packages( pkgs = mydeps, dependencies = TRUE ) The packages listed here provide full functionality within ANTsR. You will need CMake to download it but if you don’t already have it there’s a CMake package that can be downloaded specifically for R on github. The traditional way to install ANTsR is to clone the packages from github and use the R CMD INSTALL <packagename> . However, sometimes it’s easier to not have to go back and forth between terminal and R’s interfac