File: temp_var.Rd

package info (click to toggle)
r-cran-svmisc 1.4.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 844 kB
  • sloc: sh: 12; makefile: 2
file content (29 lines) | stat: -rw-r--r-- 620 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/temp_var.R
\name{temp_var}
\alias{temp_var}
\alias{tempvar}
\title{Get an arbitrary name for a temporary variable}
\usage{
temp_var(pattern = ".var")

tempvar(pattern = ".var")
}
\arguments{
\item{pattern}{The prefix for the variable (the rest is a random number).}
}
\value{
A string with the name of a variable.
}
\description{
This function ensures that the variable name is cryptic enough
and is not already used.
}
\examples{
temp_var()
}
\seealso{
\code{\link[=tempfile]{tempfile()}}
}
\concept{temporary variables}
\keyword{utilities}