% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/hmrc_cache_info.R
\name{hmrc_cache_info}
\alias{hmrc_cache_info}
\title{Inspect the local HMRC cache}
\usage{
hmrc_cache_info()
}
\value{
A data frame with columns \code{file}, \code{extension}, \code{size_bytes},
\code{size_mb}, \code{modified} (POSIXct), \code{age_days}, \code{path}. The data frame is
empty (zero rows) if the cache directory does not exist or is empty.
The cache directory itself is attached as the attribute \code{"cache_dir"}.
}
\description{
Returns a tidy table of files currently held in the package cache, with
size and age. Useful for understanding what is stored locally and deciding
when to clear stale files via \code{\link[=hmrc_clear_cache]{hmrc_clear_cache()}}.
}
\examples{
\donttest{
op <- options(hmrc.cache_dir = tempdir())
info <- hmrc_cache_info()
attr(info, "cache_dir")
options(op)
}

}
\seealso{
Other infrastructure: 
\code{\link{hmrc_clear_cache}()},
\code{\link{hmrc_list_tax_heads}()},
\code{\link{hmrc_meta}()},
\code{\link{hmrc_publications}()},
\code{\link{hmrc_search}()}
}
\concept{infrastructure}
