% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/system_os.R
\name{system_os}
\alias{system_os}
\title{Get the current operating system}
\usage{
system_os()
}
\value{
A character string: "linux", "darwin" (macOS), or "windows"
}
\description{
Returns the name of the current operating system in lowercase.
This is a simple wrapper around \code{Sys.info()[["sysname"]]}.
}
\details{
This function is used with testthat's \code{variant} parameter in
\code{\link[testthat:expect_snapshot_file]{testthat::expect_snapshot_file()}} to create OS-specific snapshots
when file formats produce different output across platforms.

Common use cases:
\itemize{
\item RDS files: Binary serialization format that can differ across OS
\item Platform-specific numeric computations (e.g., MCMC algorithms)
\item Files with platform-specific line endings or encodings
}
}
\examples{
system_os()
}
