<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Set the class of the control list</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="R.css" />
</head><body>

<table width="100%" summary="page for set.control.class"><tr><td>set.control.class</td><td style="text-align: right;">R Documentation</td></tr></table>

<h2>Set the class of the control list</h2>

<h3>Description</h3>

<p>This function sets the class of the control list, with the default being the
name of the calling function.
</p>


<h3>Usage</h3>

<pre>
set.control.class(
  myname = as.character(RDS::ult(sys.calls(), 2)[[1L]]),
  control = get("control", pos = parent.frame())
)
</pre>


<h3>Arguments</h3>

<table summary="R argblock">
<tr valign="top"><td><code>myname</code></td>
<td>
<p>Name of the class to set.</p>
</td></tr>
<tr valign="top"><td><code>control</code></td>
<td>
<p>Control list. Defaults to the <code>control</code> variable in the
calling function.</p>
</td></tr>
</table>


<h3>Value</h3>

<p>The control list with class set.
</p>


<h3>See Also</h3>

<p>check.control.class, print.control.list
</p>


</body></html>
