% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/statcan_search.R
\name{statcan_search}
\alias{statcan_search}
\title{Search Statistics Canada data tables}
\usage{
statcan_search(keywords, lang = c("eng", "fra"), refresh = FALSE)
}
\arguments{
\item{keywords}{Character vector of words that must appear in the table
title. Matching is case-insensitive.}

\item{lang}{Language of the returned titles: \code{"eng"} or \code{"fra"}.}

\item{refresh}{Logical; if \code{TRUE}, ignore a fresh cache and request the
catalogue from WDS.}
}
\value{
A \code{DT::datatable} containing matching table titles, Product IDs,
release dates, and language.
}
\description{
Searches the catalogue of tables published through Statistics Canada's Web
Data Service (WDS). The catalogue is cached for 24 hours in the user's cache
directory. If WDS is temporarily unavailable, the most recent valid cache is
used.
}
\examples{
\dontrun{
statcan_search(c("economy", "export"), "eng")
statcan_search("population", "fra")
}
}
