% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/read.R
\name{download_study}
\alias{download_study}
\title{Download a CIS study ZIP file to disk}
\usage{
download_study(study_code, destdir = ".")
}
\arguments{
\item{study_code}{A string with the study code.}

\item{destdir}{A string with the directory where the ZIP file will be saved.
Defaults to the current working directory.}
}
\value{
The path to the saved ZIP file, invisibly.
}
\description{
Downloads the data ZIP file for a CIS study to a specified directory,
instead of a temporary folder. Useful for projects that need to keep
the raw data files.
}
\examples{
\donttest{
# Save the ZIP file to a temporary directory
path <- download_study("3328", destdir = tempdir())
cat("Saved to:", path, "\n")
}
}
