Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword or section
Like this
1Activity

Table Of Contents

0 of .
Results for:
No results containing your search query
P. 1
R-exts

R-exts

Ratings: (0)|Views: 29 |Likes:
Published by VANSOLO2

More info:

Published by: VANSOLO2 on Nov 12, 2010
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

11/06/2011

pdf

text

original

 
Writing R Extensions
Version 2.12.0 (2010-10-15)
R Development Core Team
 
Permission is granted to make and distribute verbatim copies o this manual provided the copy-right notice and this permission notice are preserved on all copies.Permission is granted to copy and distribute modied versions o this manual under the condi-tions or verbatim copying, provided that the entire resulting derived work is distributed underthe terms o a permission notice identical to this one.Permission is granted to copy and distribute translations o this manual into another language,under the above conditions or modied versions, except that this permission notice may bestated in a translation approved by the R Development Core Team.Copyrightc
1999–2010 R Development Core TeamISBN 3-900051-11-9
 
i
Table o Contents
Acknowledgements
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
11 Creating R packages
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2
1.1 Package structure
.................................................................
21.1.1 The
DESCRIPTION
’ le
........................................................
31.1.2 The
INDEX
’ le
...............................................................
71.1.3 Package subdirectories
........................................................
71.1.4 Package bundles
..............................................................
91.1.5 Data in packages
............................................................
101.2 Congure and cleanup
............................................................
101.2.1 Using
Makevars
............................................................
121.2.2 Congure example
...........................................................
151.2.3 Using F95 code
..............................................................
171.3 Checking and building packages
..................................................
171.3.1 Checking packages
...........................................................
171.3.2 Building packages
...........................................................
201.4 Writing package vignettes
........................................................
201.5 Submitting a package to
CRAN
...................................................
211.6 Package name spaces
.............................................................
231.6.1 Speciying imports and exports
..............................................
231.6.2 Registering S3 methods
......................................................
241.6.3 Load hooks
..................................................................
241.6.4 An example
.................................................................
261.6.5 Summary – converting an existing package
...................................
271.6.6 Name spaces with S4 classes and methods
....................................
271.7 Writing portable packages
........................................................
281.7.1 Encoding issues
.............................................................
291.7.2 Binary distribution
..........................................................
301.8 Diagnostic messages
..............................................................
311.9 Internationalization
..............................................................
321.9.1 C-level messages
.............................................................
321.9.2 R messages
..................................................................
331.9.3 Installing translations
........................................................
331.9.4 Makele support
............................................................
331.10 CITATION les
.................................................................
341.11 Package types
...................................................................
351.11.1 Frontend
...................................................................
351.11.2 Translation
.................................................................
351.12 Services
.........................................................................
2 Writing R documentation les
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.1 Rd ormat
........................................................................
372.1.1 Documenting unctions
......................................................
382.1.2 Documenting data sets
......................................................
422.1.3 Documenting S4 classes and methods
........................................
432.1.4 Documenting packages
.......................................................
432.2 Sectioning
........................................................................

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->