The R Project SVN R

Rev

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

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