mni_url: MNI Download URL

View source: R/mni_url.R

mni_urlR Documentation

MNI Download URL

Description

MNI Download URL

Usage

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


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 Feb. 22, 2025, 1:50 p.m.