From 160c6935b698d61a2b9603b1f141508a72fb3f58 Mon Sep 17 00:00:00 2001 From: Reinhold Kainhofer <reinhold@kainhofer.com> Date: Wed, 21 Sep 2016 14:33:02 +0000 Subject: [PATCH] extend mortalityTables.load and mortalityTables.list by a "package" argument to allow loading sample data from other packages --- man/mortalityTables.list.Rd | 5 ++++- man/mortalityTables.load.Rd | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/man/mortalityTables.list.Rd b/man/mortalityTables.list.Rd index 773165c..a8c18d8 100644 --- a/man/mortalityTables.list.Rd +++ b/man/mortalityTables.list.Rd @@ -5,10 +5,13 @@ \title{List all available sets of life tables provided by the \link[MortalityTables]{MortalityTables-package} package An existing life table can then be loaded with \link{mortalityTables.load}.} \usage{ -mortalityTables.list(pattern = "*") +mortalityTables.list(pattern = "*", package = "MortalityTables") } \arguments{ \item{pattern}{Restrict the results only to life table sets that match the pattern (default: "*" to show all sets)} + +\item{package}{The package that contains the desired dataset in its \code{extdata/} +directory. Defaults to the "MortalityTables" package.} } \description{ List all available sets of life tables provided by the \link[MortalityTables]{MortalityTables-package} package diff --git a/man/mortalityTables.load.Rd b/man/mortalityTables.load.Rd index 3117708..26b13d8 100644 --- a/man/mortalityTables.load.Rd +++ b/man/mortalityTables.load.Rd @@ -4,7 +4,7 @@ \alias{mortalityTables.load} \title{Load a named set of mortality tables provided by the \link{MortalityTables} package} \usage{ -mortalityTables.load(dataset, wildcard = FALSE) +mortalityTables.load(dataset, wildcard = FALSE, package = "MortalityTables") } \arguments{ \item{dataset}{The set of life tables to be loaded. A list of all available @@ -12,6 +12,9 @@ data sets is provided by the function \code{\link{mortalityTables.list}}.} \item{wildcard}{Whether the dataset name contains wildcard. If TRUE, all datasets matching the pattern will be loaded} + +\item{package}{The package that contains the dataset in its \code{extdata/} +directory. Defaults to the "MortalityTables" package.} } \description{ Load a named set of mortality tables provided by the \link{MortalityTables} package -- GitLab