A remotes based installer for SimpleITK in R.
Default configuration, single core compilation:
remotes::install_github("SimpleITK/SimpleITKRInstaller")Turn on mutlicore compilation, six cores in this example
Sys.setenv(MAKEJ=6)
remotes::install_github("SimpleITK/SimpleITKRInstaller")Use multicore compilation and build additional modules not included in the default build setup such as SimpleElastix (registration) and DCMTK (additional DICOM IO option beyond the default GDCM).
Sys.setenv(MAKEJ=6)
Sys.setenv(ADDITIONAL_SITK_MODULES="-DSimpleITK_USE_ELASTIX=ON -DModule_ITKIODCMTK:BOOL=ON")
remotes::install_github("SimpleITK/SimpleITKRInstaller")Note: On Linux and Mac requires CMake and git in the path.
On Windows requires rtools installation and setting the RTOOLS_HOME environment variable. For example:
Sys.setenv(RTOOLS_HOME = "C:/rtools45")If you find the R version of SimpleITK useful in your research, support our efforts by citing it as:
R. Beare, B. C. Lowekamp, Z. Yaniv, "Image Segmentation, Registration and Characterization in R with SimpleITK", J Stat Softw, 86(8), https://doi.org/10.18637/jss.v086.i08, 2018.