Learn R Programming

macat (version 1.40.0)

loaddatapkg: Load data package

Description

This function loads the data package, you need for seeing the demo and the examples. If you have already installed the data package, it will simply attach it via library. Otherwise it will try to download and install the package using functions from the package

Usage

loaddatapkg(mydatapkg,installDir=.libPaths()[1])

Arguments

mydatapkg
Name of the data package to load as String
installDir
Directory, into which the new package will be installed, if is not already installed. Defaults to the first entry of the standard installation paths.

See Also

install.packages

Examples

Run this code
 ## Not run: loaddatapkg("stjudem") # to load the data package "stjudem"

Run the code above in your browser using DataLab