R-exts - Writing R Extensions Version 2.10.1 R Development...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Writing R Extensions Version 2.10.1 (2009-12-14) R Development Core Team Permission is granted to make and distribute verbatim copies of this manual provided the copyright notice and this permission notice are preserved on all copies. Permission is granted to copy and distribute modified versions of this manual under the con- ditions for verbatim copying, provided that the entire resulting derived work is distributed under the terms of a permission notice identical to this one. Permission is granted to copy and distribute translations of this manual into another lan- guage, under the above conditions for modified versions, except that this permission notice may be stated in a translation approved by the R Development Core Team. Copyright c 1999–2009 R Development Core Team ISBN 3-900051-11-9 i Table of Contents Acknowledgements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 1 Creating R packages . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 1.1 Package structure .............................................. 2 1.1.1 The ‘ DESCRIPTION ’ file .................................... 3 1.1.2 The ‘ INDEX ’ file ........................................... 7 1.1.3 Package subdirectories ..................................... 7 1.1.4 Package bundles .......................................... 10 1.1.5 Data in packages ......................................... 10 1.2 Configure and cleanup ........................................ 11 1.2.1 Using ‘ Makevars ’ ......................................... 13 1.2.1.1 Back-compatibility .................................. 15 1.2.2 Configure example ....................................... 16 1.2.3 Using F95 code .......................................... 18 1.3 Checking and building packages ............................... 18 1.3.1 Checking packages ....................................... 18 1.3.2 Building packages ........................................ 20 1.3.3 Customizing checking and building ....................... 21 1.4 Writing package vignettes ..................................... 22 1.5 Submitting a package to CRAN ................................ 23 1.6 Package name spaces .......................................... 25 1.6.1 Specifying imports and exports ........................... 25 1.6.2 Registering S3 methods .................................. 26 1.6.3 Load hooks .............................................. 26 1.6.4 An example .............................................. 29 1.6.5 Summary – converting an existing package ................ 30 1.6.6 Name spaces with S4 classes and methods ................ 30 1.7 Writing portable packages ..................................... 31 1.7.1 Encoding issues .......................................... 32 1.8 Diagnostic messages ........................................... 33 1.9 Internationalization ........................................... 34 1.9.1 C-level messages ......................................... 34 1.9.2 R messages1....
View Full Document

{[ snackBarMessage ]}

Page1 / 155

R-exts - Writing R Extensions Version 2.10.1 R Development...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online