The R Project SVN R

Rev

Rev 52288 | Rev 52331 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 52288 Rev 52291
Line 1... Line 1...
1
 
1
 
2
R version 2.12.0 Under development (unstable) (2010-06-15 r52287)
2
R version 2.12.0 Under development (unstable) (2010-06-15 r52288)
3
Copyright (C) 2010 The R Foundation for Statistical Computing
3
Copyright (C) 2010 The R Foundation for Statistical Computing
4
ISBN 3-900051-07-0
4
ISBN 3-900051-07-0
5
Platform: i386-pc-mingw32/i386 (32-bit)
5
Platform: x86_64-unknown-linux-gnu (64-bit)
6
 
6
 
7
R is free software and comes with ABSOLUTELY NO WARRANTY.
7
R is free software and comes with ABSOLUTELY NO WARRANTY.
8
You are welcome to redistribute it under certain conditions.
8
You are welcome to redistribute it under certain conditions.
9
Type 'license()' or 'licence()' for distribution details.
9
Type 'license()' or 'licence()' for distribution details.
10
 
10
 
11
  Natural language support but running in an English locale
11
  Natural language support but running in an English locale
12
 
12
 
13
R is a collaborative project with many contributors.
13
R is a collaborative project with many contributors.
14
Type 'contributors()' for more information and
14
Type 'contributors()' for more information and
15
'citation()' on how to cite R or R packages in publications.
15
'citation()' on how to cite R or R packages in publications.
16
 
16
 
17
Type 'demo()' for some demos, 'help()' for on-line help, or
17
Type 'demo()' for some demos, 'help()' for on-line help, or
18
'help.start()' for an HTML browser interface to help.
18
'help.start()' for an HTML browser interface to help.
19
Type 'q()' to quit R.
19
Type 'q()' to quit R.
20
 
20
 
21
> pkgname <- "tools"
21
> pkgname <- "tools"
22
> source(file.path(R.home("share"), "R", "examples-header.R"))
22
> source(file.path(R.home("share"), "R", "examples-header.R"))
23
> options(warn = 1)
23
> options(warn = 1)
24
> options(pager = "console")
24
> library('tools')
25
> library('tools')
25
> 
26
> 
26
> assign(".oldSearch", search(), pos = 'CheckExEnv')
27
> assign(".oldSearch", search(), pos = 'CheckExEnv')
27
> cleanEx()
28
> cleanEx()
28
> nameEx("HTMLheader")
29
> nameEx("HTMLheader")
29
> ### * HTMLheader
30
> ### * HTMLheader
30
> 
31
> 
31
> flush(stderr()); flush(stdout())
32
> flush(stderr()); flush(stdout())
32
> 
33
> 
33
> ### Name: HTMLheader
34
> ### Name: HTMLheader
34
> ### Title: Generate a standard HTML header for R help.
35
> ### Title: Generate a standard HTML header for R help.
35
> ### Aliases: HTMLheader
36
> ### Aliases: HTMLheader
36
> ### Keywords: utilities documentation
37
> ### Keywords: utilities documentation
37
> 
38
> 
38
> ### ** Examples
39
> ### ** Examples
39
> 
40
> 
40
> cat(HTMLheader("This is a sample header"), sep="\n")
41
> cat(HTMLheader("This is a sample header"), sep="\n")
41
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
42
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
42
<html><head><title>R: This is a sample header</title>
43
<html><head><title>R: This is a sample header</title>
43
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
44
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
44
<link rel="stylesheet" type="text/css" href="/doc/html/R.css">
45
<link rel="stylesheet" type="text/css" href="/doc/html/R.css">
45
</head><body>
46
</head><body>
46
<h1> This is a sample header
47
<h1> This is a sample header
47
<img class="toplogo" src="/doc/html/logo.jpg" alt="[R logo]"></h1>
48
<img class="toplogo" src="/doc/html/logo.jpg" alt="[R logo]"></h1>
48
</h1>
49
</h1>
49
<hr>
50
<hr>
50
<div align="center">
51
<div align="center">
51
<a href="/doc/html/index.html"><img src="/doc/html/up.jpg" alt="[Top]" width="30" height="30" border="0"></a>
52
<a href="/doc/html/index.html"><img src="/doc/html/up.jpg" alt="[Top]" width="30" height="30" border="0"></a>
52
</div>
53
</div>
53
> 
54
> 
54
> 
55
> 
55
> 
56
> 
56
> cleanEx()
57
> cleanEx()
57
> nameEx("Rd2HTML")
58
> nameEx("Rd2HTML")
58
> ### * Rd2HTML
59
> ### * Rd2HTML
59
> 
60
> 
60
> flush(stderr()); flush(stdout())
61
> flush(stderr()); flush(stdout())
61
> 
62
> 
62
> ### Name: Rd2HTML
63
> ### Name: Rd2HTML
63
> ### Title: Rd Converters
64
> ### Title: Rd Converters
64
> ### Aliases: Rd2txt Rd2HTML Rd2ex Rd2latex
65
> ### Aliases: Rd2txt Rd2HTML Rd2ex Rd2latex
65
> ### Keywords: documentation
66
> ### Keywords: documentation
66
> 
67
> 
67
> ### ** Examples
68
> ### ** Examples
68
> cleanEx()
69
> cleanEx()
69
> nameEx("Rd2txt_options")
70
> nameEx("Rd2txt_options")
70
> ### * Rd2txt_options
71
> ### * Rd2txt_options
71
> 
72
> 
72
> flush(stderr()); flush(stdout())
73
> flush(stderr()); flush(stdout())
73
> 
74
> 
74
> ### Name: Rd2txt_options
75
> ### Name: Rd2txt_options
75
> ### Title: Set formatting options for text help.
76
> ### Title: Set formatting options for text help.
76
> ### Aliases: Rd2txt_options
77
> ### Aliases: Rd2txt_options
77
> ### Keywords: documentation
78
> ### Keywords: documentation
78
> 
79
> 
79
> ### ** Examples
80
> ### ** Examples
80
> 
81
> 
81
> saveOpts <- Rd2txt_options()
82
> saveOpts <- Rd2txt_options()
82
> saveOpts
83
> saveOpts
83
$width
84
$width
84
[1] 80
85
[1] 80
85
 
86
 
86
$minIndent
87
$minIndent
87
[1] 10
88
[1] 10
88
 
89
 
89
$extraIndent
90
$extraIndent
90
[1] 4
91
[1] 4
91
 
92
 
92
$sectionIndent
93
$sectionIndent
93
[1] 5
94
[1] 5
94
 
95
 
95
$sectionExtra
96
$sectionExtra
96
[1] 2
97
[1] 2
97
 
98
 
98
$itemBullet
99
$itemBullet
99
[1] "* "
100
[1] "* "
100
 
101
 
101
$enumFormat
102
$enumFormat
102
function (n) 
103
function (n) 
103
sprintf("%d. ", n)
104
sprintf("%d. ", n)
104
<environment: 01d74cfc>
105
<environment: 01d74cfc>
105
 
106
 
106
$showURLs
107
$showURLs
107
[1] FALSE
108
[1] FALSE
108
 
109
 
109
> Rd2txt_options(minIndent=4)
110
> Rd2txt_options(minIndent=4)
110
> Rd2txt_options()
111
> Rd2txt_options()
111
$width
112
$width
112
[1] 80
113
[1] 80
113
 
114
 
114
$minIndent
115
$minIndent
115
[1] 4
116
[1] 4
116
 
117
 
117
$extraIndent
118
$extraIndent
118
[1] 4
119
[1] 4
119
 
120
 
120
$sectionIndent
121
$sectionIndent
121
[1] 5
122
[1] 5
122
 
123
 
123
$sectionExtra
124
$sectionExtra
124
[1] 2
125
[1] 2
125
 
126
 
126
$itemBullet
127
$itemBullet
127
[1] "* "
128
[1] "* "
128
 
129
 
129
$enumFormat
130
$enumFormat
130
function (n) 
131
function (n) 
131
sprintf("%d. ", n)
132
sprintf("%d. ", n)
132
<environment: 01d74cfc>
133
<environment: 01d74cfc>
133
 
134
 
134
$showURLs
135
$showURLs
135
[1] FALSE
136
[1] FALSE
136
 
137
 
137
> Rd2txt_options(saveOpts)
138
> Rd2txt_options(saveOpts)
138
> Rd2txt_options()
139
> Rd2txt_options()
139
$width
140
$width
140
[1] 80
141
[1] 80
141
 
142
 
142
$minIndent
143
$minIndent
143
[1] 10
144
[1] 10
144
 
145
 
145
$extraIndent
146
$extraIndent
146
[1] 4
147
[1] 4
147
 
148
 
148
$sectionIndent
149
$sectionIndent
149
[1] 5
150
[1] 5
150
 
151
 
151
$sectionExtra
152
$sectionExtra
152
[1] 2
153
[1] 2
153
 
154
 
154
$itemBullet
155
$itemBullet
155
[1] "* "
156
[1] "* "
156
 
157
 
157
$enumFormat
158
$enumFormat
158
function (n) 
159
function (n) 
159
sprintf("%d. ", n)
160
sprintf("%d. ", n)
160
<environment: 01d74cfc>
161
<environment: 01d74cfc>
161
 
162
 
162
$showURLs
163
$showURLs
163
[1] FALSE
164
[1] FALSE
164
 
165
 
165
> 
166
> 
166
> 
167
> 
167
> 
168
> 
168
> cleanEx()
169
> cleanEx()
169
> nameEx("Rdutils")
170
> nameEx("Rdutils")
170
> ### * Rdutils
171
> ### * Rdutils
171
> 
172
> 
172
> flush(stderr()); flush(stdout())
173
> flush(stderr()); flush(stdout())
173
> 
174
> 
174
> ### Name: Rdutils
175
> ### Name: Rdutils
175
> ### Title: Rd Utilities
176
> ### Title: Rd Utilities
176
> ### Aliases: Rd_db
177
> ### Aliases: Rd_db
177
> ### Keywords: utilities documentation
178
> ### Keywords: utilities documentation
178
> 
179
> 
179
> ### ** Examples
180
> ### ** Examples
180
> 
181
> 
181
> 
182
> 
182
> cleanEx()
183
> cleanEx()
183
> nameEx("bibstyle")
184
> nameEx("bibstyle")
184
> ### * bibstyle
185
> ### * bibstyle
185
> 
186
> 
186
> flush(stderr()); flush(stdout())
187
> flush(stderr()); flush(stdout())
187
> 
188
> 
188
> ### Name: bibstyle
189
> ### Name: bibstyle
189
> ### Title: Select or define a bibliography style.
190
> ### Title: Select or define a bibliography style.
190
> ### Aliases: bibstyle
191
> ### Aliases: bibstyle
191
> ### Keywords: utilties documentation
192
> ### Keywords: utilties documentation
192
> 
193
> 
193
> ### ** Examples
194
> ### ** Examples
194
> 
195
> 
195
> ## Don't show: 
196
> refs <- 
196
> options(useFancyQuotes = FALSE)
197
+ c(bibentry(bibtype = "manual",
197
> ## End Don't show
198
+     title = "R: A Language and Environment for Statistical Computing",
198
> refs <- 
199
+     author = person("R Development Core Team"),
199
+ c(bibentry(bibtype = "manual",
200
+     organization = "R Foundation for Statistical Computing",
200
+     title = "R: A Language and Environment for Statistical Computing",
201
+     address = "Vienna, Austria",
201
+     author = person("R Development Core Team"),
202
+     year = 2010,
202
+     organization = "R Foundation for Statistical Computing",
203
+     isbn = "3-900051-07-0",
203
+     address = "Vienna, Austria",
204
+     url = "http://www.R-project.org"),  
204
+     year = 2010,
205
+   bibentry(bibtype = "article",
205
+     isbn = "3-900051-07-0",
206
+     author = c(person(c("George", "E", "P"), "Box"),
206
+     url = "http://www.R-project.org"),  
207
+                person(c("David",  "R"),      "Cox")),
207
+   bibentry(bibtype = "article",
208
+     year = 1964,
208
+     author = c(person(c("George", "E", "P"), "Box"),
209
+     title="An Analysis of Transformations",
209
+                person(c("David",  "R"),      "Cox")),
210
+     journal="Journal of the Royal Statistical Society, Series B",
210
+     year = 1964,
211
+     volume=26,
211
+     title="An Analysis of Transformations",
212
+     pages="211-252"))
212
+     journal="Journal of the Royal Statistical Society, Series B",
213
> bibstyle("unsorted", sortKeys = function(refs) seq_along(refs), .init=TRUE)
213
+     volume=26,
214
<environment: 017b7eb8>
214
+     pages="211-252"))
215
> print(refs, .bibstyle="unsorted")    
215
> bibstyle("unsorted", sortKeys = function(refs) seq_along(refs), .init=TRUE)
216
R Development Core Team (2010). _R: A Language and Environment for
216
<environment: 017b7eb8>
217
Statistical Computing_. R Foundation for Statistical Computing, Vienna,
217
> print(refs, .bibstyle="unsorted")    
218
Austria. ISBN 3-900051-07-0, <URL: http://www.R-project.org>.
218
R Development Core Team (2010). _R: A Language and Environment for
219
 
219
Statistical Computing_. R Foundation for Statistical Computing, Vienna,
220
Box GEP and Cox DR (1964). "An Analysis of Transformations." _Journal
220
Austria. ISBN 3-900051-07-0, <URL: http://www.R-project.org>.
221
of the Royal Statistical Society, Series B_, *26*, pp. 211-252.
221
 
222
> 
222
Box GEP and Cox DR (1964). "An Analysis of Transformations." _Journal
223
> 
223
of the Royal Statistical Society, Series B_, *26*, pp. 211-252.
224
> 
224
> 
225
> cleanEx()
225
> 
226
> nameEx("charsets")
226
> 
227
> ### * charsets
227
> cleanEx()
228
> 
228
> nameEx("charsets")
229
> flush(stderr()); flush(stdout())
229
> ### * charsets
230
> 
230
> 
231
> ### Name: charsets
231
> flush(stderr()); flush(stdout())
232
> ### Title: Conversion Tables between Character Sets
232
> 
233
> ### Aliases: Adobe_glyphs charset_to_Unicode
233
> ### Name: charsets
234
> ### Keywords: datasets
234
> ### Title: Conversion Tables between Character Sets
235
> 
235
> ### Aliases: Adobe_glyphs charset_to_Unicode
236
> ### ** Examples
236
> ### Keywords: datasets
237
> 
237
> 
238
> ## find Adobe names for ISOLatin2 chars.
238
> ### ** Examples
239
> latin2 <- charset_to_Unicode[, "ISOLatin2"]
239
> 
240
> aUnicode <- as.numeric(paste("0x", Adobe_glyphs$unicode, sep=""))
240
> ## find Adobe names for ISOLatin2 chars.
241
> keep <- aUnicode %in% latin2
241
> latin2 <- charset_to_Unicode[, "ISOLatin2"]
242
> aUnicode <- aUnicode[keep]
242
> aUnicode <- as.numeric(paste("0x", Adobe_glyphs$unicode, sep=""))
243
> aAdobe <- Adobe_glyphs[keep, 1]
243
> keep <- aUnicode %in% latin2
244
> ## first match
244
> aUnicode <- aUnicode[keep]
245
> aLatin2 <- aAdobe[match(latin2, aUnicode)]
245
> aAdobe <- Adobe_glyphs[keep, 1]
246
> ## all matches
246
> ## first match
247
> bLatin2 <- lapply(1:256, function(x) aAdobe[aUnicode == latin2[x]])
247
> aLatin2 <- aAdobe[match(latin2, aUnicode)]
248
> format(bLatin2, justify="none")
248
> ## all matches
249
  [1] ""                          "controlSTX"               
249
> bLatin2 <- lapply(1:256, function(x) aAdobe[aUnicode == latin2[x]])
250
  [3] "controlSOT"                "controlETX"               
250
> format(bLatin2, justify="none")
251
  [5] "controlEOT"                "controlENQ"               
251
  [1] ""                          "controlSTX"               
252
  [7] "controlACK"                "controlBEL"               
252
  [3] "controlSOT"                "controlETX"               
253
  [9] "controlBS"                 "controlHT"                
253
  [5] "controlEOT"                "controlENQ"               
254
 [11] "controlLF"                 "controlVT"                
254
  [7] "controlACK"                "controlBEL"               
255
 [13] "controlFF"                 "controlCR"                
255
  [9] "controlBS"                 "controlHT"                
256
 [15] "controlSO"                 "controlSI"                
256
 [11] "controlLF"                 "controlVT"                
257
 [17] "controlDLE"                "controlDC1"               
257
 [13] "controlFF"                 "controlCR"                
258
 [19] "controlDC2"                "controlDC3"               
258
 [15] "controlSO"                 "controlSI"                
259
 [21] "controlDC4"                "controlNAK"               
259
 [17] "controlDLE"                "controlDC1"               
260
 [23] "controlSYN"                "controlETB"               
260
 [19] "controlDC2"                "controlDC3"               
261
 [25] "controlCAN"                "controlEM"                
261
 [21] "controlDC4"                "controlNAK"               
262
 [27] "controlSUB"                "controlESC"               
262
 [23] "controlSYN"                "controlETB"               
263
 [29] "controlFS"                 "controlGS"                
263
 [25] "controlCAN"                "controlEM"                
264
 [31] "controlRS"                 "controlUS"                
264
 [27] "controlSUB"                "controlESC"               
265
 [33] "space, spacehackarabic"    "exclam"                   
265
 [29] "controlFS"                 "controlGS"                
266
 [35] "quotedbl"                  "numbersign"               
266
 [31] "controlRS"                 "controlUS"                
267
 [37] "dollar"                    "percent"                  
267
 [33] "space, spacehackarabic"    "exclam"                   
268
 [39] "ampersand"                 "quotesingle"              
268
 [35] "quotedbl"                  "numbersign"               
269
 [41] "parenleft"                 "parenright"               
269
 [37] "dollar"                    "percent"                  
270
 [43] "asterisk"                  "plus"                     
270
 [39] "ampersand"                 "quotesingle"              
271
 [45] "comma"                     "hyphen"                   
271
 [41] "parenleft"                 "parenright"               
272
 [47] "period"                    "slash"                    
272
 [43] "asterisk"                  "plus"                     
273
 [49] "zero"                      "one"                      
273
 [45] "comma"                     "hyphen"                   
274
 [51] "two"                       "three"                    
274
 [47] "period"                    "slash"                    
275
 [53] "four"                      "five"                     
275
 [49] "zero"                      "one"                      
276
 [55] "six"                       "seven"                    
276
 [51] "two"                       "three"                    
277
 [57] "eight"                     "nine"                     
277
 [53] "four"                      "five"                     
278
 [59] "colon"                     "semicolon"                
278
 [55] "six"                       "seven"                    
279
 [61] "less"                      "equal"                    
279
 [57] "eight"                     "nine"                     
280
 [63] "greater"                   "question"                 
280
 [59] "colon"                     "semicolon"                
281
 [65] "at"                        "A"                        
281
 [61] "less"                      "equal"                    
282
 [67] "B"                         "C"                        
282
 [63] "greater"                   "question"                 
283
 [69] "D"                         "E"                        
283
 [65] "at"                        "A"                        
284
 [71] "F"                         "G"                        
284
 [67] "B"                         "C"                        
285
 [73] "H"                         "I"                        
285
 [69] "D"                         "E"                        
286
 [75] "J"                         "K"                        
286
 [71] "F"                         "G"                        
287
 [77] "L"                         "M"                        
287
 [73] "H"                         "I"                        
288
 [79] "N"                         "O"                        
288
 [75] "J"                         "K"                        
289
 [81] "P"                         "Q"                        
289
 [77] "L"                         "M"                        
290
 [83] "R"                         "S"                        
290
 [79] "N"                         "O"                        
291
 [85] "T"                         "U"                        
291
 [81] "P"                         "Q"                        
292
 [87] "V"                         "W"                        
292
 [83] "R"                         "S"                        
293
 [89] "X"                         "Y"                        
293
 [85] "T"                         "U"                        
294
 [91] "Z"                         "bracketleft"              
294
 [87] "V"                         "W"                        
295
 [93] "backslash"                 "bracketright"             
295
 [89] "X"                         "Y"                        
296
 [95] "asciicircum"               "underscore"               
296
 [91] "Z"                         "bracketleft"              
297
 [97] "grave"                     "a"                        
297
 [93] "backslash"                 "bracketright"             
298
 [99] "b"                         "c"                        
298
 [95] "asciicircum"               "underscore"               
299
[101] "d"                         "e"                        
299
 [97] "grave"                     "a"                        
300
[103] "f"                         "g"                        
300
 [99] "b"                         "c"                        
301
[105] "h"                         "i"                        
301
[101] "d"                         "e"                        
302
[107] "j"                         "k"                        
302
[103] "f"                         "g"                        
303
[109] "l"                         "m"                        
303
[105] "h"                         "i"                        
304
[111] "n"                         "o"                        
304
[107] "j"                         "k"                        
305
[113] "p"                         "q"                        
305
[109] "l"                         "m"                        
306
[115] "r"                         "s"                        
306
[111] "n"                         "o"                        
307
[117] "t"                         "u"                        
307
[113] "p"                         "q"                        
308
[119] "v"                         "w"                        
308
[115] "r"                         "s"                        
309
[121] "x"                         "y"                        
309
[117] "t"                         "u"                        
310
[123] "z"                         "braceleft"                
310
[119] "v"                         "w"                        
311
[125] "bar, verticalbar"          "braceright"               
311
[121] "x"                         "y"                        
312
[127] "asciitilde"                "controlDEL"               
312
[123] "z"                         "braceleft"                
313
[129] ""                          ""                         
313
[125] "bar, verticalbar"          "braceright"               
314
[131] ""                          ""                         
314
[127] "asciitilde"                "controlDEL"               
315
[133] ""                          ""                         
315
[129] ""                          ""                         
316
[135] ""                          ""                         
316
[131] ""                          ""                         
317
[137] ""                          ""                         
317
[133] ""                          ""                         
318
[139] ""                          ""                         
318
[135] ""                          ""                         
319
[141] ""                          ""                         
319
[137] ""                          ""                         
320
[143] ""                          ""                         
320
[139] ""                          ""                         
321
[145] ""                          ""                         
321
[141] ""                          ""                         
322
[147] ""                          ""                         
322
[143] ""                          ""                         
323
[149] ""                          ""                         
323
[145] ""                          ""                         
324
[151] ""                          ""                         
324
[147] ""                          ""                         
325
[153] ""                          ""                         
325
[149] ""                          ""                         
326
[155] ""                          ""                         
326
[151] ""                          ""                         
327
[157] ""                          ""                         
327
[153] ""                          ""                         
328
[159] ""                          ""                         
328
[155] ""                          ""                         
329
[161] "nbspace, nonbreakingspace" "Aogonek"                  
329
[157] ""                          ""                         
330
[163] "breve"                     "Lslash"                   
330
[159] ""                          ""                         
331
[165] "currency"                  "Lcaron"                   
331
[161] "nbspace, nonbreakingspace" "Aogonek"                  
332
[167] "Sacute"                    "section"                  
332
[163] "breve"                     "Lslash"                   
333
[169] "dieresis"                  "Scaron"                   
333
[165] "currency"                  "Lcaron"                   
334
[171] "Scedilla"                  "Tcaron"                   
334
[167] "Sacute"                    "section"                  
335
[173] "Zacute"                    "sfthyphen, softhyphen"    
335
[169] "dieresis"                  "Scaron"                   
336
[175] "Zcaron"                    "Zdot, Zdotaccent"         
336
[171] "Scedilla"                  "Tcaron"                   
337
[177] "degree"                    "aogonek"                  
337
[173] "Zacute"                    "sfthyphen, softhyphen"    
338
[179] "ogonek"                    "lslash"                   
338
[175] "Zcaron"                    "Zdot, Zdotaccent"         
339
[181] "acute"                     "lcaron"                   
339
[177] "degree"                    "aogonek"                  
340
[183] "sacute"                    "caron"                    
340
[179] "ogonek"                    "lslash"                   
341
[185] "cedilla"                   "scaron"                   
341
[181] "acute"                     "lcaron"                   
342
[187] "scedilla"                  "tcaron"                   
342
[183] "sacute"                    "caron"                    
343
[189] "zacute"                    "hungarumlaut"             
343
[185] "cedilla"                   "scaron"                   
344
[191] "zcaron"                    "zdot, zdotaccent"         
344
[187] "scedilla"                  "tcaron"                   
345
[193] "Racute"                    "Aacute"                   
345
[189] "zacute"                    "hungarumlaut"             
346
[195] "Acircumflex"               "Abreve"                   
346
[191] "zcaron"                    "zdot, zdotaccent"         
347
[197] "Adieresis"                 "Lacute"                   
347
[193] "Racute"                    "Aacute"                   
348
[199] "Cacute"                    "Ccedilla"                 
348
[195] "Acircumflex"               "Abreve"                   
349
[201] "Ccaron"                    "Eacute"                   
349
[197] "Adieresis"                 "Lacute"                   
350
[203] "Eogonek"                   "Edieresis"                
350
[199] "Cacute"                    "Ccedilla"                 
351
[205] "Ecaron"                    "Iacute"                   
351
[201] "Ccaron"                    "Eacute"                   
352
[207] "Icircumflex"               "Dcaron"                   
352
[203] "Eogonek"                   "Edieresis"                
353
[209] "Dcroat, Dslash"            "Nacute"                   
353
[205] "Ecaron"                    "Iacute"                   
354
[211] "Ncaron"                    "Oacute"                   
354
[207] "Icircumflex"               "Dcaron"                   
355
[213] "Ocircumflex"               "Odblacute, Ohungarumlaut" 
355
[209] "Dcroat, Dslash"            "Nacute"                   
356
[215] "Odieresis"                 "multiply"                 
356
[211] "Ncaron"                    "Oacute"                   
357
[217] "Rcaron"                    "Uring"                    
357
[213] "Ocircumflex"               "Odblacute, Ohungarumlaut" 
358
[219] "Uacute"                    "Udblacute, Uhungarumlaut" 
358
[215] "Odieresis"                 "multiply"                 
359
[221] "Udieresis"                 "Yacute"                   
359
[217] "Rcaron"                    "Uring"                    
360
[223] "Tcedilla, Tcommaaccent"    "germandbls"               
360
[219] "Uacute"                    "Udblacute, Uhungarumlaut" 
361
[225] "racute"                    "aacute"                   
361
[221] "Udieresis"                 "Yacute"                   
362
[227] "acircumflex"               "abreve"                   
362
[223] "Tcedilla, Tcommaaccent"    "germandbls"               
363
[229] "adieresis"                 "lacute"                   
363
[225] "racute"                    "aacute"                   
364
[231] "cacute"                    "ccedilla"                 
364
[227] "acircumflex"               "abreve"                   
365
[233] "ccaron"                    "eacute"                   
365
[229] "adieresis"                 "lacute"                   
366
[235] "eogonek"                   "edieresis"                
366
[231] "cacute"                    "ccedilla"                 
367
[237] "ecaron"                    "iacute"                   
367
[233] "ccaron"                    "eacute"                   
368
[239] "icircumflex"               "dcaron"                   
368
[235] "eogonek"                   "edieresis"                
369
[241] "dcroat, dmacron"           "nacute"                   
369
[237] "ecaron"                    "iacute"                   
370
[243] "ncaron"                    "oacute"                   
370
[239] "icircumflex"               "dcaron"                   
371
[245] "ocircumflex"               "odblacute, ohungarumlaut" 
371
[241] "dcroat, dmacron"           "nacute"                   
372
[247] "odieresis"                 "divide"                   
372
[243] "ncaron"                    "oacute"                   
373
[249] "rcaron"                    "uring"                    
373
[245] "ocircumflex"               "odblacute, ohungarumlaut" 
374
[251] "uacute"                    "udblacute, uhungarumlaut" 
374
[247] "odieresis"                 "divide"                   
375
[253] "udieresis"                 "yacute"                   
375
[249] "rcaron"                    "uring"                    
376
[255] "tcedilla, tcommaaccent"    "dotaccent"                
376
[251] "uacute"                    "udblacute, uhungarumlaut" 
377
> 
377
[253] "udieresis"                 "yacute"                   
378
> 
378
[255] "tcedilla, tcommaaccent"    "dotaccent"                
379
> 
379
> 
380
> cleanEx()
380
> 
381
> nameEx("checkFF")
381
> 
382
> ### * checkFF
382
> cleanEx()
383
> 
383
> nameEx("checkFF")
384
> flush(stderr()); flush(stdout())
384
> ### * checkFF
385
> 
385
> 
386
> ### Name: checkFF
386
> flush(stderr()); flush(stdout())
387
> ### Title: Check Foreign Function Calls
387
> 
388
> ### Aliases: checkFF print.checkFF
388
> ### Name: checkFF
389
> ### Keywords: programming utilities
389
> ### Title: Check Foreign Function Calls
390
> 
390
> ### Aliases: checkFF print.checkFF
391
> ### ** Examples
391
> ### Keywords: programming utilities
392
> 
392
> 
393
> 
393
> ### ** Examples
394
> cleanEx()
394
> 
395
> nameEx("checkRdaFiles")
395
> 
396
> ### * checkRdaFiles
396
> cleanEx()
397
> 
397
> nameEx("checkRdaFiles")
398
> flush(stderr()); flush(stdout())
398
> ### * checkRdaFiles
399
> 
399
> 
400
> ### Name: checkRdaFiles
400
> flush(stderr()); flush(stdout())
401
> ### Title: Report on Details of Saved Images or Re-saves them
401
> 
402
> ### Aliases: checkRdaFiles resaveRdaFiles
402
> ### Name: checkRdaFiles
403
> ### Keywords: utilities
403
> ### Title: Report on Details of Saved Images or Re-saves them
404
> 
404
> ### Aliases: checkRdaFiles resaveRdaFiles
405
> ### ** Examples
405
> ### Keywords: utilities
406
> ## Not run: 
406
> 
407
> ##D ## from a package top-level source directory
407
> ### ** Examples
408
> ##D paths <- sort(Sys.glob(c("data/*.rda", "data/*.RData")))
408
> ## Not run: 
409
> ##D (res <- checkRdaFiles(paths))
409
> ##D ## from a package top-level source directory
410
> ##D ## pick out some that may need attention
410
> ##D paths <- sort(Sys.glob(c("data/*.rda", "data/*.RData")))
411
> ##D bad <- is.na(res$ASCII) | res$ASCII | (res$size > 1e4 & res$compress == "none")
411
> ##D (res <- checkRdaFiles(paths))
412
> ##D res[bad, ]
412
> ##D ## pick out some that may need attention
413
> ## End(Not run)
413
> ##D bad <- is.na(res$ASCII) | res$ASCII | (res$size > 1e4 & res$compress == "none")
414
> 
414
> ##D res[bad, ]
415
> 
415
> ## End(Not run)
416
> cleanEx()
416
> 
417
> nameEx("delimMatch")
417
> 
418
> ### * delimMatch
418
> cleanEx()
419
> 
419
> nameEx("delimMatch")
420
> flush(stderr()); flush(stdout())
420
> ### * delimMatch
421
> 
421
> 
422
> ### Name: delimMatch
422
> flush(stderr()); flush(stdout())
423
> ### Title: Delimited Pattern Matching
423
> 
424
> ### Aliases: delimMatch
424
> ### Name: delimMatch
425
> ### Keywords: character
425
> ### Title: Delimited Pattern Matching
426
> 
426
> ### Aliases: delimMatch
427
> ### ** Examples
427
> ### Keywords: character
428
> 
428
> 
429
> x <- c("\\value{foo}", "function(bar)")
429
> ### ** Examples
430
> delimMatch(x)
430
> 
431
[1]  7 -1
431
> x <- c("\\value{foo}", "function(bar)")
432
attr(,"match.length")
432
> delimMatch(x)
433
[1]  5 -1
433
[1]  7 -1
434
> delimMatch(x, c("(", ")"))
434
attr(,"match.length")
435
[1] -1  9
435
[1]  5 -1
436
attr(,"match.length")
436
> delimMatch(x, c("(", ")"))
437
[1] -1  5
437
[1] -1  9
438
> 
438
attr(,"match.length")
439
> 
439
[1] -1  5
440
> 
440
> 
441
> cleanEx()
441
> 
442
> nameEx("dependsOnPkgs")
442
> 
443
> ### * dependsOnPkgs
443
> cleanEx()
444
> 
444
> nameEx("dependsOnPkgs")
445
> flush(stderr()); flush(stdout())
445
> ### * dependsOnPkgs
446
> 
446
> 
447
> ### Name: dependsOnPkgs
447
> flush(stderr()); flush(stdout())
448
> ### Title: Find Reverse Dependencies
448
> 
449
> ### Aliases: dependsOnPkgs
449
> ### Name: dependsOnPkgs
450
> ### Keywords: utilities
450
> ### Title: Find Reverse Dependencies
451
> 
451
> ### Aliases: dependsOnPkgs
452
> ### ** Examples
452
> ### Keywords: utilities
453
> 
453
> 
454
> ## there are few dependencies in a vanilla R installation
454
> ### ** Examples
455
> dependsOnPkgs("lattice")
455
> 
456
[1] "Matrix" "nlme"   "mgcv"  
456
> ## there are few dependencies in a vanilla R installation
457
> 
457
> dependsOnPkgs("lattice")
458
> 
458
[1] "Matrix" "nlme"   "mgcv"  
459
> 
459
> 
460
> cleanEx()
460
> 
461
> nameEx("encoded")
461
> 
462
> ### * encoded
462
> cleanEx()
463
> 
463
> nameEx("encoded")
464
> flush(stderr()); flush(stdout())
464
> ### * encoded
465
> 
465
> 
466
> ### Name: encoded_text_to_latex
466
> flush(stderr()); flush(stdout())
467
> ### Title: Translate non-ASCII Text to LaTeX Escapes
467
> 
468
> ### Aliases: encoded_text_to_latex
468
> ### Name: encoded_text_to_latex
469
> ### Keywords: utilities
469
> ### Title: Translate non-ASCII Text to LaTeX Escapes
470
> 
470
> ### Aliases: encoded_text_to_latex
471
> ### ** Examples
471
> ### Keywords: utilities
472
> 
472
> 
473
> x <- "fa\xE7ile"
473
> ### ** Examples
474
> encoded_text_to_latex(x, "latin1")
474
> 
475
[1] "fa{\\c c}ile"
475
> x <- "fa\xE7ile"
476
> ## Not run: 
476
> encoded_text_to_latex(x, "latin1")
477
> ##D ## create a tex file to show the upper half of 8-bit charsets
477
[1] "fa{\\c c}ile"
478
> ##D x <- rawToChar(as.raw(160:255), multiple=TRUE)
478
> ## Not run: 
479
> ##D (x <- matrix(x, ncol=16, byrow=TRUE))
479
> ##D ## create a tex file to show the upper half of 8-bit charsets
480
> ##D xx <- x
480
> ##D x <- rawToChar(as.raw(160:255), multiple=TRUE)
481
> ##D xx[] <- encoded_text_to_latex(x, "latin1") # or latin2 or latin9
481
> ##D (x <- matrix(x, ncol=16, byrow=TRUE))
482
> ##D xx <- apply(xx, 1, paste, collapse="&")
482
> ##D xx <- x
483
> ##D con <- file("test-encoding.tex", "w")
483
> ##D xx[] <- encoded_text_to_latex(x, "latin1") # or latin2 or latin9
484
> ##D header <- c(
484
> ##D xx <- apply(xx, 1, paste, collapse="&")
485
> ##D "\\documentclass{article}",
485
> ##D con <- file("test-encoding.tex", "w")
486
> ##D "\\usepackage[T1]{fontenc}",
486
> ##D header <- c(
487
> ##D "\\usepackage{Rd}",
487
> ##D "\\documentclass{article}",
488
> ##D "\\begin{document}",
488
> ##D "\\usepackage[T1]{fontenc}",
489
> ##D "\\HeaderA{test}{}{test}",
489
> ##D "\\usepackage{Rd}",
490
> ##D "\\begin{Details}\relax",
490
> ##D "\\begin{document}",
491
> ##D "\\Tabular{cccccccccccccccc}{")
491
> ##D "\\HeaderA{test}{}{test}",
492
> ##D trailer <- c("}", "\\end{Details}", "\\end{document}")
492
> ##D "\\begin{Details}\relax",
493
> ##D writeLines(header, con)
493
> ##D "\\Tabular{cccccccccccccccc}{")
494
> ##D writeLines(paste(xx, "\\", sep=""), con)
494
> ##D trailer <- c("}", "\\end{Details}", "\\end{document}")
495
> ##D writeLines(trailer, con)
495
> ##D writeLines(header, con)
496
> ##D close(con)
496
> ##D writeLines(paste(xx, "\\", sep=""), con)
497
> ##D ## and some UTF_8 chars
497
> ##D writeLines(trailer, con)
498
> ##D x <- intToUtf8(as.integer(
498
> ##D close(con)
499
> ##D     c(160:383,0x0192,0x02C6,0x02C7,0x02CA,0x02D8,
499
> ##D ## and some UTF_8 chars
500
> ##D       0x02D9, 0x02DD, 0x200C, 0x2018, 0x2019, 0x201C,
500
> ##D x <- intToUtf8(as.integer(
501
> ##D       0x201D, 0x2020, 0x2022, 0x2026, 0x20AC)),
501
> ##D     c(160:383,0x0192,0x02C6,0x02C7,0x02CA,0x02D8,
502
> ##D                multiple=TRUE)
502
> ##D       0x02D9, 0x02DD, 0x200C, 0x2018, 0x2019, 0x201C,
503
> ##D x <- matrix(x, ncol=16, byrow=TRUE)
503
> ##D       0x201D, 0x2020, 0x2022, 0x2026, 0x20AC)),
504
> ##D xx <- x
504
> ##D                multiple=TRUE)
505
> ##D xx[] <- encoded_text_to_latex(x, "UTF-8")
505
> ##D x <- matrix(x, ncol=16, byrow=TRUE)
506
> ##D xx <- apply(xx, 1, paste, collapse="&")
506
> ##D xx <- x
507
> ##D con <- file("test-utf8.tex", "w")
507
> ##D xx[] <- encoded_text_to_latex(x, "UTF-8")
508
> ##D writeLines(header, con)
508
> ##D xx <- apply(xx, 1, paste, collapse="&")
509
> ##D writeLines(paste(xx, "\\", sep=""), con)
509
> ##D con <- file("test-utf8.tex", "w")
510
> ##D writeLines(trailer, con)
510
> ##D writeLines(header, con)
511
> ##D close(con)
511
> ##D writeLines(paste(xx, "\\", sep=""), con)
512
> ## End(Not run)
512
> ##D writeLines(trailer, con)
513
> 
513
> ##D close(con)
514
> 
514
> ## End(Not run)
515
> cleanEx()
515
> 
516
> nameEx("fileutils")
516
> 
517
> ### * fileutils
517
> cleanEx()
518
> 
518
> nameEx("fileutils")
519
> flush(stderr()); flush(stdout())
519
> ### * fileutils
520
> 
520
> 
521
> ### Name: fileutils
521
> flush(stderr()); flush(stdout())
522
> ### Title: File Utilities
522
> 
523
> ### Aliases: file_ext file_path_as_absolute file_path_sans_ext
523
> ### Name: fileutils
524
> ###   list_files_with_exts list_files_with_type
524
> ### Title: File Utilities
525
> ### Keywords: file
525
> ### Aliases: file_ext file_path_as_absolute file_path_sans_ext
526
> 
526
> ###   list_files_with_exts list_files_with_type
527
> ### ** Examples
527
> ### Keywords: file
528
> 
528
> 
529
> 
529
> ### ** Examples
530
> cleanEx()
530
> 
531
> nameEx("getDepList")
531
> 
532
> ### * getDepList
532
> cleanEx()
533
> 
533
> nameEx("getDepList")
534
> flush(stderr()); flush(stdout())
534
> ### * getDepList
535
> 
535
> 
536
> ### Name: getDepList
536
> flush(stderr()); flush(stdout())
537
> ### Title: Functions to Retrieve Dependency Information
537
> 
538
> ### Aliases: getDepList pkgDepends
538
> ### Name: getDepList
539
> ### Keywords: utilities
539
> ### Title: Functions to Retrieve Dependency Information
540
> 
540
> ### Aliases: getDepList pkgDepends
541
> ### ** Examples
541
> ### Keywords: utilities
542
> 
542
> 
543
> pkgDepends("tools", local = FALSE)
543
> ### ** Examples
544
$Depends
544
> 
545
character(0)
545
> pkgDepends("tools", local = FALSE)
546
 
546
$Depends
547
$Installed
547
character(0)
548
character(0)
548
 
549
 
549
$Installed
550
$Found
550
character(0)
551
list()
551
 
552
 
552
$Found
553
$NotFound
553
list()
554
character(0)
554
 
555
 
555
$NotFound
556
$R
556
character(0)
557
character(0)
557
 
558
 
558
$R
559
attr(,"class")
559
character(0)
560
[1] "DependsList" "list"       
560
 
561
> 
561
attr(,"class")
562
> 
562
[1] "DependsList" "list"       
563
> 
563
> 
564
> cleanEx()
564
> 
565
> nameEx("installFoundDepends")
565
> 
566
> ### * installFoundDepends
566
> cleanEx()
567
> 
567
> nameEx("installFoundDepends")
568
> flush(stderr()); flush(stdout())
568
> ### * installFoundDepends
569
> 
569
> 
570
> ### Name: installFoundDepends
570
> flush(stderr()); flush(stdout())
571
> ### Title: A function to install unresolved dependencies
571
> 
572
> ### Aliases: installFoundDepends
572
> ### Name: installFoundDepends
573
> ### Keywords: utilities
573
> ### Title: A function to install unresolved dependencies
574
> 
574
> ### Aliases: installFoundDepends
575
> ### ** Examples
575
> ### Keywords: utilities
576
> 
576
> 
577
> ## Set up a temporary directory to install packages to
577
> ### ** Examples
578
> tmp <- tempfile()
578
> 
579
> dir.create(tmp)
579
> ## Set up a temporary directory to install packages to
580
> 
580
> tmp <- tempfile()
581
> pDL <- pkgDepends("tools",local=FALSE)
581
> dir.create(tmp)
582
> installFoundDepends(pDL$Found, destdir=tmp)
582
> 
583
NULL
583
> pDL <- pkgDepends("tools",local=FALSE)
584
> 
584
> installFoundDepends(pDL$Found, destdir=tmp)
585
> 
585
NULL
586
> 
586
> 
587
> cleanEx()
587
> 
588
> nameEx("makeLazyLoading")
588
> 
589
> ### * makeLazyLoading
589
> cleanEx()
590
> 
590
> nameEx("makeLazyLoading")
591
> flush(stderr()); flush(stdout())
591
> ### * makeLazyLoading
592
> 
592
> 
593
> ### Name: makeLazyLoading
593
> flush(stderr()); flush(stdout())
594
> ### Title: Lazy Loading of Packages
594
> 
595
> ### Aliases: makeLazyLoading
595
> ### Name: makeLazyLoading
596
> ### Keywords: utilities
596
> ### Title: Lazy Loading of Packages
597
> 
597
> ### Aliases: makeLazyLoading
598
> ### ** Examples
598
> ### Keywords: utilities
599
> 
599
> 
600
> ## set up package "splines" for lazy loading -- already done
600
> ### ** Examples
601
> ## Not run: 
601
> 
602
> ##D tools:::makeLazyLoading("splines")
602
> ## set up package "splines" for lazy loading -- already done
603
> ## End(Not run)
603
> ## Not run: 
604
> 
604
> ##D tools:::makeLazyLoading("splines")
605
> 
605
> ## End(Not run)
606
> 
606
> 
607
> cleanEx()
607
> 
608
> nameEx("md5sum")
608
> 
609
> ### * md5sum
609
> cleanEx()
610
> 
610
> nameEx("md5sum")
611
> flush(stderr()); flush(stdout())
611
> ### * md5sum
612
> 
612
> 
613
> ### Name: md5sum
613
> flush(stderr()); flush(stdout())
614
> ### Title: Compute MD5 Checksums
614
> 
615
> ### Aliases: md5sum
615
> ### Name: md5sum
616
> ### Keywords: utilities
616
> ### Title: Compute MD5 Checksums
617
> 
617
> ### Aliases: md5sum
618
> ### ** Examples
618
> ### Keywords: utilities
619
> 
619
> 
620
> as.vector(md5sum(dir(R.home(), pattern="^COPY", full.names=TRUE)))
620
> ### ** Examples
621
[1] "eb723b61539feef013de476e68b5c50a"
621
> 
622
> 
622
> as.vector(md5sum(dir(R.home(), pattern="^COPY", full.names=TRUE)))
623
> 
623
[1] "eb723b61539feef013de476e68b5c50a"
624
> 
624
> 
625
> cleanEx()
625
> 
626
> nameEx("readNEWS")
626
> 
627
> ### * readNEWS
627
> cleanEx()
628
> 
628
> nameEx("readNEWS")
629
> flush(stderr()); flush(stdout())
629
> ### * readNEWS
630
> 
630
> 
631
> ### Name: readNEWS
631
> flush(stderr()); flush(stdout())
632
> ### Title: Read R's NEWS file or a similar one
632
> 
633
> ### Aliases: readNEWS checkNEWS
633
> ### Name: readNEWS
634
> ### Keywords: file documentation
634
> ### Title: Read R's NEWS file or a similar one
635
> 
635
> ### Aliases: readNEWS checkNEWS
636
> ### ** Examples
636
> ### Keywords: file documentation
637
> # Check the current NEWS file
637
> 
638
> 
638
> ### ** Examples
639
> stopifnot(checkNEWS())
639
> # Check the current NEWS file
640
> 
640
> 
641
> 
641
> stopifnot(checkNEWS())
642
> 
642
> 
643
> 
643
> 
644
> cleanEx()
644
> 
645
> nameEx("showNonASCII")
645
> 
646
> ### * showNonASCII
646
> cleanEx()
647
> 
647
> nameEx("showNonASCII")
648
> flush(stderr()); flush(stdout())
648
> ### * showNonASCII
649
> 
649
> 
650
> ### Name: showNonASCII
650
> flush(stderr()); flush(stdout())
651
> ### Title: Highlight non-ASCII characters
651
> 
652
> ### Aliases: showNonASCII
652
> ### Name: showNonASCII
653
> ### Keywords: utilities
653
> ### Title: Highlight non-ASCII characters
654
> 
654
> ### Aliases: showNonASCII
655
> ### ** Examples
655
> ### Keywords: utilities
656
> 
656
> 
657
> out <- c(
657
> ### ** Examples
658
+ "fa\xE7ile test of showNonASCII():",
658
> 
659
+ "\\details{",
659
> out <- c(
660
+ "   This is a good line",
660
+ "fa\xE7ile test of showNonASCII():",
661
+ "   This has an \xfcmlaut in it.",
661
+ "\\details{",
662
+ "   OK again.",
662
+ "   This is a good line",
663
+ "}")
663
+ "   This has an \xfcmlaut in it.",
664
> f <- tempfile()
664
+ "   OK again.",
665
> cat(out, file = f, sep = "\n")
665
+ "}")
666
> 
666
> f <- tempfile()
667
> showNonASCII(readLines(f))
667
> cat(out, file = f, sep = "\n")
668
1: fa<e7>ile test of showNonASCII():
668
> 
669
4:    This has an <fc>mlaut in it.
669
> showNonASCII(readLines(f))
670
> unlink(f)
670
1: fa<e7>ile test of showNonASCII():
671
> 
671
4:    This has an <fc>mlaut in it.
672
> 
672
> unlink(f)
673
> 
673
> 
674
> cleanEx()
674
> 
675
> nameEx("toHTML")
675
> 
676
> ### * toHTML
676
> cleanEx()
677
> 
677
> nameEx("toHTML")
678
> flush(stderr()); flush(stdout())
678
> ### * toHTML
679
> 
679
> 
680
> ### Name: toHTML
680
> flush(stderr()); flush(stdout())
681
> ### Title: Display an object in HTML.
681
> 
682
> ### Aliases: toHTML toHTML.packageIQR toHTML.news_db
682
> ### Name: toHTML
683
> ### Keywords: utilities documentation
683
> ### Title: Display an object in HTML.
684
> 
684
> ### Aliases: toHTML toHTML.packageIQR toHTML.news_db
685
> ### ** Examples
685
> ### Keywords: utilities documentation
686
> 
686
> 
687
> cat(toHTML(demo(package="base")), sep="\n")
687
> ### ** Examples
688
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
688
> 
689
<html><head><title>R: R</title>
689
> cat(toHTML(demo(package="base")), sep="\n")
690
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
690
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
691
<link rel="stylesheet" type="text/css" href="/doc/html/R.css">
691
<html><head><title>R: R</title>
692
</head><body>
692
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
693
<h1> R
693
<link rel="stylesheet" type="text/css" href="/doc/html/R.css">
694
<img class="toplogo" src="/doc/html/logo.jpg" alt="[R logo]"></h1>
694
</head><body>
695
</h1>
695
<h1> R
696
<hr>
696
<img class="toplogo" src="/doc/html/logo.jpg" alt="[R logo]"></h1>
697
<div align="center">
697
</h1>
698
<a href="/doc/html/index.html"><img src="/doc/html/up.jpg" alt="[Top]" width="30" height="30" border="0"></a>
698
<hr>
699
</div>
699
<div align="center">
700
<h2>Demos in package &lsquo;base&rsquo;</h2>
700
<a href="/doc/html/index.html"><img src="/doc/html/up.jpg" alt="[Top]" width="30" height="30" border="0"></a>
701
<table cols="2" width="100%">
701
</div>
702
<tr>
702
<h2>Demos in package &lsquo;base&rsquo;</h2>
703
 <td align="left" valign="top" width="10%">
703
<table cols="2" width="100%">
704
is.things
704
<tr>
705
 </td>
705
 <td align="left" valign="top" width="10%">
706
 <td align="left" valign="top" width="90%">
706
is.things
707
Explore some properties of R objects and is.FOO() functions. Not for newbies!
707
 </td>
708
 </td>
708
 <td align="left" valign="top" width="90%">
709
</tr>
709
Explore some properties of R objects and is.FOO() functions. Not for newbies!
710
 
710
 </td>
711
<tr>
711
</tr>
712
 <td align="left" valign="top" width="10%">
712
 
713
recursion
713
<tr>
714
 </td>
714
 <td align="left" valign="top" width="10%">
715
 <td align="left" valign="top" width="90%">
715
recursion
716
Using recursion for adaptive integration
716
 </td>
717
 </td>
717
 <td align="left" valign="top" width="90%">
718
</tr>
718
Using recursion for adaptive integration
719
 
719
 </td>
720
<tr>
720
</tr>
721
 <td align="left" valign="top" width="10%">
721
 
722
scoping
722
<tr>
723
 </td>
723
 <td align="left" valign="top" width="10%">
724
 <td align="left" valign="top" width="90%">
724
scoping
725
An illustration of lexical scoping.
725
 </td>
726
 </td>
726
 <td align="left" valign="top" width="90%">
727
</tr>
727
An illustration of lexical scoping.
728
 
728
 </td>
729
</table>
729
</tr>
730
<p>
730
 
731
</p>
731
</table>
732
</body></html>
732
<p>
733
> 
733
</p>
734
> 
734
</body></html>
735
> 
735
> 
736
> cleanEx()
736
> 
737
> nameEx("undoc")
737
> 
738
> ### * undoc
738
> cleanEx()
739
> 
739
> nameEx("undoc")
740
> flush(stderr()); flush(stdout())
740
> ### * undoc
741
> 
741
> 
742
> ### Name: undoc
742
> flush(stderr()); flush(stdout())
743
> ### Title: Find Undocumented Objects
743
> 
744
> ### Aliases: undoc print.undoc
744
> ### Name: undoc
745
> ### Keywords: documentation
745
> ### Title: Find Undocumented Objects
746
> 
746
> ### Aliases: undoc print.undoc
747
> ### ** Examples
747
> ### Keywords: documentation
748
> 
748
> 
749
> undoc("tools")                  # Undocumented objects in 'tools'
749
> ### ** Examples
750
> 
750
> 
751
> 
751
> undoc("tools")                  # Undocumented objects in 'tools'
752
> 
752
> 
753
> cleanEx()
753
> 
754
> nameEx("vignetteDepends")
754
> 
755
> ### * vignetteDepends
755
> cleanEx()
756
> 
756
> nameEx("vignetteDepends")
757
> flush(stderr()); flush(stdout())
757
> ### * vignetteDepends
758
> 
758
> 
759
> ### Name: vignetteDepends
759
> flush(stderr()); flush(stdout())
760
> ### Title: Retrieve Dependency Information for a Vignette
760
> 
761
> ### Aliases: vignetteDepends
761
> ### Name: vignetteDepends
762
> ### Keywords: utilities
762
> ### Title: Retrieve Dependency Information for a Vignette
763
> 
763
> ### Aliases: vignetteDepends
764
> ### ** Examples
764
> ### Keywords: utilities
765
> 
765
> 
766
> ## This may not be installed
766
> ### ** Examples
767
> gridEx <- system.file("doc", "grid.Snw", package = "grid")
767
> 
768
> vignetteDepends(gridEx)
768
> ## This may not be installed
769
$Depends
769
> gridEx <- system.file("doc", "grid.Snw", package = "grid")
770
[1] "lattice"
770
> vignetteDepends(gridEx)
771
 
771
$Depends
772
$Installed
772
[1] "lattice"
773
[1] "lattice"
773
 
774
 
774
$Installed
775
$Found
775
[1] "lattice"
776
list()
776
 
777
 
777
$Found
778
$NotFound
778
list()
779
character(0)
779
 
780
 
780
$NotFound
781
$R
781
character(0)
782
[1] "R (>= 2.11.0)"
782
 
783
 
783
$R
784
attr(,"class")
784
[1] "R (>= 2.11.0)"
785
[1] "DependsList" "list"       
785
 
786
> 
786
attr(,"class")
787
> 
787
[1] "DependsList" "list"       
788
> 
788
> 
789
> cleanEx()
789
> 
790
> nameEx("writePACKAGES")
790
> 
791
> ### * writePACKAGES
791
> cleanEx()
792
> 
792
> nameEx("writePACKAGES")
793
> flush(stderr()); flush(stdout())
793
> ### * writePACKAGES
794
> 
794
> 
795
> ### Name: write_PACKAGES
795
> flush(stderr()); flush(stdout())
796
> ### Title: Generate PACKAGES files
796
> 
797
> ### Aliases: write_PACKAGES
797
> ### Name: write_PACKAGES
798
> ### Keywords: file utilities
798
> ### Title: Generate PACKAGES files
799
> 
799
> ### Aliases: write_PACKAGES
800
> ### ** Examples
800
> ### Keywords: file utilities
801
> 
801
> 
802
> ## Not run: 
802
> ### ** Examples
803
> ##D write_PACKAGES("c:/myFolder/myRepository")  # on Windows
803
> 
804
> ##D write_PACKAGES("/pub/RWin/bin/windows/contrib/2.9",
804
> ## Not run: 
805
> ##D                type="win.binary")  # on Linux
805
> ##D write_PACKAGES("c:/myFolder/myRepository")  # on Windows
806
> ## End(Not run)
806
> ##D write_PACKAGES("/pub/RWin/bin/windows/contrib/2.9",
807
> 
807
> ##D                type="win.binary")  # on Linux
808
> 
808
> ## End(Not run)
809
> cleanEx()
809
> 
810
> nameEx("xgettext")
810
> 
811
> ### * xgettext
811
> cleanEx()
812
> 
812
> nameEx("xgettext")
813
> flush(stderr()); flush(stdout())
813
> ### * xgettext
814
> 
814
> 
815
> ### Name: xgettext
815
> flush(stderr()); flush(stdout())
816
> ### Title: Extract Translatable Messages from R Files in a Package
816
> 
817
> ### Aliases: xgettext xngettext xgettext2pot
817
> ### Name: xgettext
818
> ### Keywords: utilities
818
> ### Title: Extract Translatable Messages from R Files in a Package
819
> 
819
> ### Aliases: xgettext xngettext xgettext2pot
820
> ### ** Examples
820
> ### Keywords: utilities
821
> ## Not run: 
821
> 
822
> ##D ## in a source-directory build of R:
822
> ### ** Examples
823
> ##D xgettext(file.path(R.home(), "src", "library", "splines"))
823
> ## Not run: 
824
> ## End(Not run)
824
> ##D ## in a source-directory build of R:
825
> 
825
> ##D xgettext(file.path(R.home(), "src", "library", "splines"))
826
> 
826
> ## End(Not run)
827
> ### * <FOOTER>
827
> 
828
> ###
828
> 
829
> cat("Time elapsed: ", proc.time() - get("ptime", pos = 'CheckExEnv'),"\n")
829
> ### * <FOOTER>
830
Time elapsed:  1.46 0.18 1.76 NA NA 
830
> ###
831
> grDevices::dev.off()
831
> cat("Time elapsed: ", proc.time() - get("ptime", pos = 'CheckExEnv'),"\n")
832
null device 
832
Time elapsed:  0.601 0.016 0.617 0 0 
833
          1 
833
> grDevices::dev.off()
834
> ###
834
null device 
835
> ### Local variables: ***
835
          1 
836
> ### mode: outline-minor ***
836
> ###
837
> ### outline-regexp: "\\(> \\)?### [*]+" ***
837
> ### Local variables: ***
838
> ### End: ***
838
> ### mode: outline-minor ***
839
> quit('no')
839
> ### outline-regexp: "\\(> \\)?### [*]+" ***
-
 
840
> ### End: ***
-
 
841
> quit('no')