% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils-accessors.R
\name{creat_addition_data_rdsfile}
\alias{creat_addition_data_rdsfile}
\title{Create Additional Data RDS File}
\usage{
creat_addition_data_rdsfile(
  csv_path,
  output_dir = getwd(),
  output_name = "addition_data_gsealens.rds",
  overwrite = FALSE
)
}
\arguments{
\item{csv_path}{Character string specifying the input CSV file path.}

\item{output_dir}{Character string specifying the output directory path.
Default: current working directory.}

\item{output_name}{Character string specifying the output filename.
Default: \code{"addition_data_gsealens.rds"}}

\item{overwrite}{Logical scalar indicating whether to overwrite an existing
file. Default: \code{FALSE}.}
}
\value{
Invisible \code{TRUE} on success. The RDS file path is printed to
  the console.
}
\description{
Convert a CSV file to standardized gzip-compressed RDS format
  with validation. The output file will be saved to the specified directory
  with a standardized naming convention.
}
\examples{
# Build a small CSV in a temp directory, then convert to RDS.
tmp_csv <- file.path(tempdir(), "annotations_demo.csv")
utils::write.csv(
  data.frame(
    ID = c("HALLMARK_HYPOXIA", "HALLMARK_INFLAMMATORY_RESPONSE"),
    Brief_Description = c("Hypoxia", "Inflammatory response"),
    stringsAsFactors = FALSE
  ),
  tmp_csv, row.names = FALSE
)

out_rds <- file.path(tempdir(), "annotations_demo.rds")
creat_addition_data_rdsfile(
  tmp_csv,
  output_dir = tempdir(),
  output_name = "annotations_demo.rds",
  overwrite = TRUE
)
file.exists(out_rds)
}
