ukb_util_path: Get Path to UKB Utilitiy

Description Usage Arguments Value Examples

View source: R/ukb_util.R

Description

Get Path to UKB Utilitiy

Usage

1
2
3
4
5
6
7
8
ukb_util_path(
  util = c("ukbmd5", "ukbconv", "ukbunpack", "ukbfetch", "ukblink", "ukbgene",
    "encoding.ukb"),
  download = TRUE,
  outdir = tempdir()
)

ukb_encoding(outdir = tempdir())

Arguments

util

Name of the utility

download

Should the utility be downloaded if not found?

outdir

The output directory to download the utility

Value

A path to the utility

Examples

1
2
md5 = ukb_util_path("ukbmd5")
file.remove(md5)

adigherman/UKB documentation built on July 28, 2020, 12:54 a.m.