R Packages Davor Cubranic SCARL, Dept. of Statistics.

Slides:



Advertisements
Similar presentations
2007 ISSSS Conference Bethesda, MD Joe Jurczyk University of Akron
Advertisements

Focus on Your Content, Not on Ingesting Your Content Terry Brady Applications Programmer Analyst Georgetown University Library
International Household Survey Network Metadata Toolkit Trevor Croft MICS3 Data Archiving, Dissemination and Further Analysis Workshop Geneva - November.
05/11/2001 CPT week Natalia Ratnikova, FNAL 1 Software Distribution in CMS Distribution unitFormContent Version of SCRAM managed project.
DOCUMENT TYPES. Digital Documents Converting documents to an electronic format will preserve those documents, but how would such a process be organized?
A very short introduction to R Pia Wohland. R is… -A statistical software -Programming language -Free! -Very good in handling and manipulating data sets.
R Packages Davor Cubranic SCARL, Dept. of Statistics.
Enhanced XA Security CISTECH Security Solutions Belinda Daub, Senior Consultant Technical Services
Refresh- Caitlin Collins, Thibaut Jombart MRC Centre for Outbreak Analysis and Modelling Imperial College London Genetic data analysis using
 Statistics package  Graphics package  Programming language  Can be used to share/reproduce analyses  Many new packages being created - can be downloaded.
Programming Fundamentals. Programming concepts and understanding of the essentials of programming languages form the basis of computing.
How to Use the R Programming Language for Statistical Analyses Part I: An Introduction to R Jennifer Urbano Blackford, Ph.D. Department of Psychiatry Kennedy.
Project Implementation for COSC 5050 Distributed Database Applications Lab1.
System Implementation
NDT Tools Tutorial: How-To setup your own NDT server Rich Carlson Summer 04 Joint Tech July 19, 2004.
Microsoft Office Word 2013 Expert Microsoft Office Word 2013 Expert Courseware # 3251 Lesson 4: Working with Forms.
1 Introduction to Tool chains. 2 Tool chain for the Sitara Family (but it is true for other ARM based devices as well) A tool chain is a collection of.
WebsydianExpress ™ for RPG Developers. Presenter Niels P. Sorensen Product Manager, Websydian Lead Architect Developer for many years in languages like.
SCRAM Software Configuration, Release And Management Background SCRAM has been developed to enable large, geographically dispersed and autonomous groups.
Session 24 Modeling the Development Environment Written by Thomas A. Pender Published by Wiley Publishing, Inc. October 27, 2011 Presented by Hyewon Lim.
Command Line Unix for Information Professionals In web administration or information management work, I may be called upon, as an Information Professional,
Javadoc. The Plan ● What is Javadoc? ● Writing Javadoc comments ● Using the Javadoc tool ● Demo ● Practice.
®® Microsoft Windows 7 for Power Users Tutorial 13 Using the Command-Line Environment.
© 2011 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. Building an Extension for Flash Professional Justin Putney | Co-founder, Ajar.
HORIZONT 1 XINFO ® The IT Information System HORIZONT Software for Datacenters Garmischer Str. 8 D München Tel ++49(0)89 /
The introduction of CMT Version v1r14. General index 1.presentation 2.how to install CMT 3.how to write a requirements file 4.how to use CMT.
Isecur1ty training center Presented by : Eng. Mohammad Khreesha.
Copyright © 2005, SAS Institute Inc. All rights reserved. Installing and Configuring the BI Platform on z/OS Tony Valmassoi Systems Developer z/OS Host.
TUTORIAL 10: PROGRAMMING WITH JAVASCRIPT Session 2: What is JavaScript?
National Sea Grant Library The New Library System and Publication Submittals Communications Staff Tutorial October 2014 National Sea Grant Library The.
Farcry Not just a game anymore…. What is Farcry?  Farcry is a Content Management System (CMS)  It is designed to separate the jobs of site creation/design.
Documentation NCRR Documentation for BioPSE/SCIRun and map3d All this great software and you want documentation too!?
SDD/DFS Y. Jung VLT 2 nd Generation Instrumentation Pipelines, 19 Apr General Introduction Yves Jung.
Applications of MS-Word ● Letters Microsoft Word 2007 is a great tool that allows you to draft a number of written correspondences, from simple.
_______________________________________________________________CMAQ Libraries and Utilities ___________________________________________________Community.
Slide 1 Introduction to APEX. Slide 2 Agenda Introduction to Apex Architecture/Workspace Highlights Roles Example Build Report Examples of Flexibility.
Javadoc A very short tutorial. What is it A program that automatically generates documentation of your Java classes in a standard format For each X.java.
Developer Session #3 NCRR Advanced SCIRun/BioPSE Elements: GUIs, Core Libs, Contributions & Support.
Tool Install How to download & install Java 6 & Eclipse updated version based on Dr. G. L. Ray’s slides.
Module 8 : Configuration II Jong S. Bok
CharMeck.org Contributer Training SharePoint 2013 Orientation and Basic Training.
J.P. Wellisch, CERN/EP/SFT SCRAM Information on SCRAM J.P. Wellisch, C. Williams, S. Ashby.
Structural Design Software TYLER HUTCHISON. Requirements  Develop an interface to generate a text file.  The text file is then passed to one of five.
How to start using SAS SARBAJIT MUKHERJEE. WHAT IS SAS? SAS stands for Statistical Analysis System. Useful for the following types of task: 1. Data entry,
G.Govi CERN/IT-DB 1 September 26, 2003 POOL Integration, Testing and Release Procedure Integration  Packages structure  External dependencies  Configuration.
More Unix Naomi Altman. Directories Directory = folder mkdir - makes a new directory rmdir - removes an empty directory cd mydirectory - moves you into.
introductory lecture on java programming
HalFILE 2.1 Planned Features / User Feedback Session II.
Introduction to CADStat. CADStat and R R is a powerful and free statistical package [
Cognos 8 BI Configuration, Administration, and Upgrade Cognos 8 BI.
Data Exchange Framework
Tutorial for Modelsim 1 Installation Download the Modelsim Student Edition: Follow the.
Configuration & Build Management. Why Software Configuration Management ? The problem: Multiple people have to work on software that is changing More.
What module are you interested in? New Features newsWorks 6.4 Standalone CCS | January 2016 newsClipnewsClip web newsCorr newsPress Start.
Moodle Install Guide Team 5 안정현 김현수 주채진 조수아. Moodle Install Enter moodle.org web site -> Go to Standard Moodle Packages in Downloads.
XINFO HORIZONT Scheduler migration support Software for Datacenters
Development Environment
Doxygen.
Context … for projects and MyDB
MyWebLearn: Introduction
June 2011 David Front Weizmann Institute
R Programming.
CFS Community Day Core Flight System Command and Data Dictionary Utility December 4, 2017 NASA JSC/Kevin McCluney December 4, 2017.
TwinEngines Discharges
Working with Data in Windows
Lab 2 Data Manipulation and Descriptive Stats in R
Today’s Beginner Workshop
Tutorial 10: Programming with javascript
Footwear Planning and Production Process
Computational Environment Management
Presentation transcript:

R Packages Davor Cubranic SCARL, Dept. of Statistics

What is a package? Structured, standardized unit of: – R code – documentation – data – external code

Why use packages Installation & administration Validation Distribution Documentation Organization

Handling packages Load with library( name ) Package-level help: –library(help= name ) Unload with detach(package: name ) – You shouldn’t have to do this

New project: – source(‘anova.mlm.R’) package.skeleton(“anova.mlm”, ls())

DESCRIPTION The only required part of a package Name, author, license, etc.

R/ Directory for R code package.skeleton creates one file per function This is not a rule, you can put as many functions into a single file

man/ Help files

NAMESPACE Defines which objects are visible to the user and other functions Public vs. private to the package The default is to make everything visible that starts with a letter

Command-line tools Check Install Build

Optional contents man/: documentation data/: datasets demo/: R code for demo purposes inst/: other files to include in the package (PDFs, vignettes) tests/: package test files src/: C, C++, or Fortran source code NEWS: history of changes to the package LICENSE or LICENCE: package license

DESCRIPTION Depends: – packages used by this one – and loaded as part of its loading – i.e., visible to the user Imports: – packages used by this one – but not loaded – i.e, not visible to the user Suggests: – used in examples or vignettes – non-essential functionality

NAMESPACE exportPattern(“^[[:alpha:]]”) export(anova.mlm, est.beta) S3method(print, anova.mlm) S3method(plot, anova.mlm) import(MASS) importFrom(MASS, lda)

Documentation Let’s re-generate the documentation files promptPackage(“anova.mlm”) prompt(anova.mlm)

Help files for methods \usage{anova.mlm(…)} For S3 methods: – \usage{\method{print}{anova.mlm}(….)}

Vignettes.rnw extension Written in Sweave – similar to knitr Latex + R code – Produces a PDF available in the installed package vignette() vignette(‘Sweave’)

Help on writing packages Lots of tutorials on the Web – many of them are not necessarily correct – NAMESPACES, Imports, etc. Authoritative guide: Writing R Extensions R-devel mailing list