Debian Codegraph @

inst/doc/temporary_environment.html

raw
1 <!DOCTYPE html>
2
3 <html>
4
5 <head>
6
7 <meta charset="utf-8" />
8 <meta name="generator" content="pandoc" />
9 <meta http-equiv="X-UA-Compatible" content="IE=EDGE" />
10
11 <meta name="viewport" content="width=device-width, initial-scale=1" />
12
13 <meta name="author" content="Philippe Grosjean" />
14
15 <meta name="date" content="2024-11-14" />
16
17 <title>Temporary environment</title>
18
19 <script>// Pandoc 2.9 adds attributes on both header and div. We remove the former (to
20 // be compatible with the behavior of Pandoc < 2.8).
21 document.addEventListener('DOMContentLoaded', function(e) {
22 var hs = document.querySelectorAll("div.section[class*='level'] > :first-child");
23 var i, h, a;
24 for (i = 0; i < hs.length; i++) {
25 h = hs[i];
26 if (!/^h[1-6]$/i.test(h.tagName)) continue; // it should be a header h1-h6
27 a = h.attributes;
28 while (a.length > 0) h.removeAttribute(a[0].name);
29 }
30 });
31 </script>
32
33 <style type="text/css">
34 code{white-space: pre-wrap;}
35 span.smallcaps{font-variant: small-caps;}
36 span.underline{text-decoration: underline;}
37 div.column{display: inline-block; vertical-align: top; width: 50%;}
38 div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
39 ul.task-list{list-style: none;}
40 </style>
41
42
43
44
45
46
47
48 <style type="text/css">body {
49 background-color: #fff;
50 margin: 1em auto;
51 max-width: 700px;
52 overflow: visible;
53 padding-left: 2em;
54 padding-right: 2em;
55 font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
56 font-size: 14px;
57 line-height: 1.35;
58 }
59 #TOC {
60 clear: both;
61 margin: 0 0 10px 10px;
62 padding: 4px;
63 width: 400px;
64 border: 1px solid #CCCCCC;
65 border-radius: 5px;
66 background-color: #f6f6f6;
67 font-size: 13px;
68 line-height: 1.3;
69 }
70 #TOC .toctitle {
71 font-weight: bold;
72 font-size: 15px;
73 margin-left: 5px;
74 }
75 #TOC ul {
76 padding-left: 40px;
77 margin-left: -1.5em;
78 margin-top: 5px;
79 margin-bottom: 5px;
80 }
81 #TOC ul ul {
82 margin-left: -2em;
83 }
84 #TOC li {
85 line-height: 16px;
86 }
87 table {
88 margin: 1em auto;
89 border-width: 1px;
90 border-color: #DDDDDD;
91 border-style: outset;
92 border-collapse: collapse;
93 }
94 table th {
95 border-width: 2px;
96 padding: 5px;
97 border-style: inset;
98 }
99 table td {
100 border-width: 1px;
101 border-style: inset;
102 line-height: 18px;
103 padding: 5px 5px;
104 }
105 table, table th, table td {
106 border-left-style: none;
107 border-right-style: none;
108 }
109 table thead, table tr.even {
110 background-color: #f7f7f7;
111 }
112 p {
113 margin: 0.5em 0;
114 }
115 blockquote {
116 background-color: #f6f6f6;
117 padding: 0.25em 0.75em;
118 }
119 hr {
120 border-style: solid;
121 border: none;
122 border-top: 1px solid #777;
123 margin: 28px 0;
124 }
125 dl {
126 margin-left: 0;
127 }
128 dl dd {
129 margin-bottom: 13px;
130 margin-left: 13px;
131 }
132 dl dt {
133 font-weight: bold;
134 }
135 ul {
136 margin-top: 0;
137 }
138 ul li {
139 list-style: circle outside;
140 }
141 ul ul {
142 margin-bottom: 0;
143 }
144 pre, code {
145 background-color: #f7f7f7;
146 border-radius: 3px;
147 color: #333;
148 white-space: pre-wrap;
149 }
150 pre {
151 border-radius: 3px;
152 margin: 5px 0px 10px 0px;
153 padding: 10px;
154 }
155 pre:not([class]) {
156 background-color: #f7f7f7;
157 }
158 code {
159 font-family: Consolas, Monaco, 'Courier New', monospace;
160 font-size: 85%;
161 }
162 p > code, li > code {
163 padding: 2px 0px;
164 }
165 div.figure {
166 text-align: center;
167 }
168 img {
169 background-color: #FFFFFF;
170 padding: 2px;
171 border: 1px solid #DDDDDD;
172 border-radius: 3px;
173 border: 1px solid #CCCCCC;
174 margin: 0 5px;
175 }
176 h1 {
177 margin-top: 0;
178 font-size: 35px;
179 line-height: 40px;
180 }
181 h2 {
182 border-bottom: 4px solid #f7f7f7;
183 padding-top: 10px;
184 padding-bottom: 2px;
185 font-size: 145%;
186 }
187 h3 {
188 border-bottom: 2px solid #f7f7f7;
189 padding-top: 10px;
190 font-size: 120%;
191 }
192 h4 {
193 border-bottom: 1px solid #f7f7f7;
194 margin-left: 8px;
195 font-size: 105%;
196 }
197 h5, h6 {
198 border-bottom: 1px solid #ccc;
199 font-size: 105%;
200 }
201 a {
202 color: #0033dd;
203 text-decoration: none;
204 }
205 a:hover {
206 color: #6666ff; }
207 a:visited {
208 color: #800080; }
209 a:visited:hover {
210 color: #BB00BB; }
211 a[href^="http:"] {
212 text-decoration: underline; }
213 a[href^="https:"] {
214 text-decoration: underline; }
215
216 code > span.kw { color: #555; font-weight: bold; }
217 code > span.dt { color: #902000; }
218 code > span.dv { color: #40a070; }
219 code > span.bn { color: #d14; }
220 code > span.fl { color: #d14; }
221 code > span.ch { color: #d14; }
222 code > span.st { color: #d14; }
223 code > span.co { color: #888888; font-style: italic; }
224 code > span.ot { color: #007020; }
225 code > span.al { color: #ff0000; font-weight: bold; }
226 code > span.fu { color: #900; font-weight: bold; }
227 code > span.er { color: #a61717; background-color: #e3d2d2; }
228 </style>
229
230
231
232
233 </head>
234
235 <body>
236
237
238
239
240 <h1 class="title toc-ignore">Temporary environment</h1>
241 <h4 class="author">Philippe Grosjean</h4>
242 <h4 class="date">2024-11-14</h4>
243
244
245
246 <p>{svMisc} attaches <code>SciViews:TempEnv</code> at the fore last
247 position in the search path, so that its content is accessible from any
248 loaded R package (except ‘base’). This environment is a convenient place
249 where temporary items that you do not want to see in the global
250 environment, for instance, variables related to GUI (Graphical User
251 Interface) and that are typically a nonsense to <code>save()</code> and
252 re<code>load()</code> in the global environment.</p>
253 <p><strong>TODO: show a couple of case where it is useful.</strong></p>
254 <p>The following functions are available to ease access to these
255 variables:</p>
256 <ul>
257 <li><code>temp_env()</code> get the environment itself,</li>
258 <li><code>assign_temp()</code>, <code>add_temp()</code>, and
259 <code>change_temp()</code> place or modify data in the temporary
260 environment,</li>
261 <li><code>rm_temp()</code> or <code>delete_temp()</code> eliminate
262 variables from there,</li>
263 <li><code>exists_temp()</code> tests for the existence of objects it
264 this environment,</li>
265 <li><code>get_temp()</code> retrieves objects from there.</li>
266 </ul>
267
268
269
270 <!-- code folding -->
271
272
273 <!-- dynamically load mathjax for compatibility with self-contained -->
274 <script>
275 (function () {
276 var script = document.createElement("script");
277 script.type = "text/javascript";
278 script.src = "https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML";
279 document.getElementsByTagName("head")[0].appendChild(script);
280 })();
281 </script>
282
283 </body>
284 </html>