% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/snapshot.R
\name{detect_script_name}
\alias{detect_script_name}
\title{Detect the calling script name}
\usage{
detect_script_name()
}
\value{
Character string with the detected script basename (without path).
}
\description{
Tries to identify the script file that is calling snapshot().
Uses \code{rstudioapi::getSourceEditorContext()$path} when running in RStudio,
falling back to walking the call stack for source references, and finally
to \code{"interactive"}.
}
\keyword{internal}
