setDataDir | R Documentation |
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:
Windows: R:/Data/
Mac: /Volumes/data/
Linux: ~/.gvfs/data/
setDataDir(datadir = getDefaultDataDir())
datadir |
The directory where the ALSPAC data can be found |
Null. Assigns the option alspac_data_dir
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.