Learn R Programming

rpyANTs (version 0.0.4)

ensure_template: Ensure the template directory is downloaded

Description

Ensure the template directory is downloaded

Usage

ensure_template(name = BUILTIN_TEMPLATES)

Value

The downloaded template path

Arguments

name

name of the template, commonly known as 'MNI152' templates; choices are "mni_icbm152_nlin_asym_09a", "mni_icbm152_nlin_asym_09b", and "mni_icbm152_nlin_asym_09c".

Examples

Run this code

# Do not run for testing as this will download the template
if(FALSE) {

# Default is `mni_icbm152_nlin_asym_09a`
ensure_template()
ensure_template("mni_icbm152_nlin_asym_09a")

# Using MNI152b
ensure_template("mni_icbm152_nlin_asym_09b")

}


Run the code above in your browser using DataLab