The R Project SVN R

Rev

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

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