setDataDir: Set the data directory

Description Usage Arguments Value Examples

View source: R/datadir.R

Description

This function is automatically called upon loading the package through 'library(alspac)' It creates a global option called 'alspac_data_dir' which is used by the extractVars function to locate the alspac data files. This function guesses the path to be used as default in setDataDir. The defaults are:

Usage

1

Arguments

datadir

The directory where the ALSPAC data can be found

Value

Null. Assigns the option alspac_data_dir

Examples

1
2
3
4
5
## Not run: 
setDataDir() # This sets the path based on the operating system's default
setDataDir("/some/other/path/") # This is how to supply a path manually

## End(Not run)

explodecomputer/alspac documentation built on Sept. 14, 2020, 1:10 a.m.