File: make_placeholder_fun.Rd

package info (click to toggle)
r-cran-dbitest 1.8.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,216 kB
  • sloc: sh: 10; makefile: 2
file content (25 lines) | stat: -rw-r--r-- 840 bytes parent folder | download | duplicates (3)
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
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/spec-meta-bind-.R
\name{make_placeholder_fun}
\alias{make_placeholder_fun}
\title{Create a function that creates n placeholders}
\usage{
make_placeholder_fun(pattern)
}
\arguments{
\item{pattern}{\verb{[character(1)]}\cr Any character, optionally followed by \code{1} or \code{name}. Examples: \code{"?"}, \code{"$1"}, \code{":name"}}
}
\value{
\verb{[function(n)]}\cr A function with one argument \code{n} that
returns a vector of length \code{n} with placeholders of the specified format.
}
\description{
For internal use by the \code{placeholder_format} tweak.
}
\examples{
body(DBItest:::make_placeholder_fun("?"))
DBItest:::make_placeholder_fun("?")(2)
DBItest:::make_placeholder_fun("$1")(3)
DBItest:::make_placeholder_fun(":name")(5)
}
\keyword{internal}