The R Project SVN R

Rev

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

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