lecture_13

lecture_13 - BIOS 735: Statistical Computing Michael Wu...

Info iconThis preview shows pages 1–5. 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 DocumentRight Arrow Icon

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

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

Unformatted text preview: BIOS 735: Statistical Computing Michael Wu Lecture 13: Intro Creating R Packages October 6, 2011 Michael Wu (Lecture 13) BIOS 735 October 6, 2011 1 / 11 Comments: these notes were largely stolen from a range of online sources including the R website, Friedrich Leischs excellent tutorial, and others. Michael Wu (Lecture 13) BIOS 735 October 6, 2011 2 / 11 R packages (vocabulary) The ability to allow the community to create packages which can be widely disseminated is a major accomplishment of R. Package : an extension of R system with code, data, documentation in a standardized format Library the directory containing the installed packages Repository where you can download the package Source the original version of the package with human-readable text and code Binary Computed version of a package with computer-readable text and code (platform specific) Base packages part of the R source tree, maintained by R Core (the essentials) Recommended packages what is tagged onto the base when you install R Contributed packages the packages that we are intending to write. Michael Wu (Lecture 13) BIOS 735 October 6, 2011 3 / 11 Easy Example: Just a Bunch of Functions 1 Load all of the functions and data sets you want into a clean R session. source("stuff.R") 2 Use the package.skeleton() command package.skeleton(name = "stuff") 3 Look inside the Read-and-delete-me file 1 Edit the help...
View Full Document

Page1 / 11

lecture_13 - BIOS 735: Statistical Computing Michael Wu...

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

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