This function retrieves and lists all available datasets within a specified package.

list_package_datasets(package_name)

Arguments

package_name

Character. The name of the package to check for datasets.

Value

A character vector containing the names of available datasets in the package. If the package is not installed or contains no datasets, an informative message is displayed.

Examples

if (FALSE) { # \dontrun{
list_package_datasets("datasets")
list_package_datasets("dissertationData")
} # }