mni_url: MNI Download URL

Description Usage Arguments Value Examples

Description

MNI Download URL

Usage

1
2
3
4
mni_url(group = c("icbm152", "PD25", "colin27", "mni305", "pediatric",
  "infant"))

mni_urls()

Arguments

group

Group of data, from mni_datasets to get URL

Value

A character vector

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
library(utils)
mni_url()
mni_url("pediatric")
df = mni_datasets()
df$url = sapply(df$group, mni_url)
df$url = file.path(df$url, df$file)

destfile = tempfile(fileext = ".zip")
## Not run: 
dl = download.file(url = df$url[2], destfile = destfile)

## End(Not run)

df = mni_datasets("minc1")
df$url = sapply(df$group, mni_url)
df$url = file.path(df$url, df$file)

destfile = tempfile(fileext = ".zip")
## Not run: 
dl = download.file(url = df$url[2], destfile = destfile)

## End(Not run)

muschellij2/mni documentation built on May 30, 2019, 2:13 p.m.