Revolution R and DPHS Cluster Statistical Computing 4/9/14.

Slides:



Advertisements
Similar presentations
Introduction to Eclipse. Start Eclipse Click and then click Eclipse from the menu: Or open a shell and type eclipse after the prompt.
Advertisements

1 Unit 02. Visual Studio Visual Studio.NET Creating Projects Project Anatomy Using the IDE Code Snippets.
Professional Toolkit V2.0 C:\Presentations - SmartCafe_Prof_V2.0 - bsc page 1 Professional Toolkit 2.0.
© Paradigm Publishing, Inc Excel 2013 Level 2 Unit 2Managing and Integrating Data and the Excel Environment Chapter 7Automating Repetitive Tasks.
Why care about debugging? How many of you have written a program that worked perfectly the first time? No one (including me!) writes a program that works.
A Guide to Unix Using Linux Fourth Edition
Introduction to the gedit editor. gedit: the Gnome editor Gnome: Gnome is a freely available (i.e., no cost) desktop environment for the UNIX system The.
Customizing Word Microsoft Office Word 2007 Illustrated Complete.
1 Chapter 4 The Fundamentals of VBA, Macros, and Command Bars.
About the Presentations The presentations cover the objectives found in the opening of each chapter. All chapter objectives are listed in the beginning.
Chapter 2: The Visual Studio.NET Development Environment Visual Basic.NET Programming: From Problem Analysis to Program Design.
Slide 1 of 9 Presenting 24x7 Scheduler The art of computer automation Press PageDown key or click to advance.
Creating a Console Application with Visual Studio
COMPREHENSIVE Excel Tutorial 8 Developing an Excel Application.
Microsoft Office Word 2013 Core Microsoft Office Word 2013 Core Courseware # 3250 Lesson 8: Using Productivity Tools.
Chapter 9 Introduction to ActionScript 3.0. Chapter 9 Lessons 1.Understand ActionScript Work with instances of movie clip symbols 3.Use code snippets.
Microsoft Visual Basic 2005 ENRICHMENT CHAPTER Visual Studio Tools for Office.
KEY NAMEHOW TO USE IT Shift Press Shift in combination with a letter to type an uppercase letter. Press Shift in combination.
A First Program Using C#
Using a Debugger. SWC What is ”debugging”? An error in a computer program is often called a ”bug”… …so, to ”debug” is to find and get rid of errors in.
© Copyright 1992–2005 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. Tutorial 2 - HelloWorld Application: Introduction to.
Keith Elder Microsoft MVP
Objectives Understand what MATLAB is and why it is widely used in engineering and science Start the MATLAB program and solve simple problems in the command.
© 2008 The McGraw-Hill Companies, Inc. All rights reserved. WORD 2007 M I C R O S O F T ® THE PROFESSIONAL APPROACH S E R I E S Lesson 21 Fields and Forms.
Automating Database Processing Chapter 6. Chapter Introduction Design and implement user-friendly menu – Called navigation form Macros – Automate repetitive.
Chapter 3: Using GUI Objects and the Visual Studio IDE.
Microsoft Visual Basic 2005 ENRICHMENT CHAPTER Visual Studio Tools for Office.
Playing Back Scripts In HP LoadRunner >>>>>>>>>>>>>>>>>>>>>>
CPSC1301 Computer Science 1 Overview of Dr. Java.
Program Design and Coding
Microsoft Visual Basic 2012 CHAPTER THREE Program Design and Coding.
Microsoft Visual Basic 2010 CHAPTER THREE Program Design and Coding.
Introduction It is developed to create software applications. It is a tool for developers of any program that uses both basic and expert settings. It.
Proposed Debugger Features Ken Ryall Warren Paul.
CSE 232: C++ Programming in Visual Studio Graphical Development Environments for C++ Eclipse –Widely available open-source debugging environment Available.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 8 Debugging, Creating Executable Files, and Distributing a Windows Application.
Debugging Visual Basic.NET Programs ► ► Use debugging tools ► ► Set breakpoints and correct mistakes. ► ► Use a Watch and Local window to examine variables.
® Microsoft Access 2010 Tutorial 10 Automating Tasks with Macros.
NETBEANS DEBUGGER.  To create a breakpoint place the cursor at the desired location.  Go to the Run -> toogle line Breakpoint or Ctrl +F8. It creates.
1 Getting Started with C++ Part 1 Windows. 2 Objective You will be able to create, compile, and run a very simple C++ program on Windows, using Microsoft.
Exploring Spyder: An IDE for scientific computing
Debugging tools in Flash CIS 126. Debugging Flash provides several tools for testing ActionScript in your SWF files. –The Debugger, lets you find errors.
SQL Query Analyzer. Graphical tool that allows you to:  Create queries and other SQL scripts and execute them against SQL Server databases. (Query window)
An introduction to the debugger And jGrasp editor-syncrasies (ideosyncrasies)
E Copyright © 2006, Oracle. All rights reserved. Using SQL Developer.
Chapter 2: The Visual Studio.NET Development Environment Visual Basic.NET Programming: From Problem Analysis to Program Design.
McGraw-Hill/Irwin The Interactive Computing Series © 2002 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft Excel 2002 Using Macros Lesson.
1 Using an Integrated Development Environment. Integrated Development Environments An Integrated Development Environment, or IDE, permits you to edit,
C Copyright © 2009, Oracle. All rights reserved. Using SQL Developer.
Dive Into® Visual Basic 2010 Express
Excel Tutorial 8 Developing an Excel Application
Appendix A Barb Ericson Georgia Institute of Technology May 2006
Chapter 2: The Visual Studio .NET Development Environment
Release Numbers MATLAB is updated regularly
Appendix A Barb Ericson Georgia Institute of Technology May 2006
Increasing your Coding Speed in SQL Server Management Studio 2017
Increasing your Coding Speed in SQL Server Management Studio 17
Guide To UNIX Using Linux Third Edition
Using Visual Studio with C#
CIS 470 Mobile App Development
Test Automation For Web-Based Applications
CSC235 - Visual Studio Tutorial
CIS 470 Mobile App Development
jGRASP editor-syncrasies (idiosyncrasies)
Chapter 1: Programming Basics, Python History and Program Components
1 Word Processing Part I.
Tutorial 10 Automating Tasks with Macros
Welcome To Microsoft Word 2016
Workshop for Programming And Systems Management Teachers
CIS 694/EEC 693 Android Sensor Programming
Presentation transcript:

Revolution R and DPHS Cluster Statistical Computing 4/9/14

Revolution R

What is it? Back End Front End

What is it?

Single Versus Multi Threading R uses a single thread Revolution R uses multiple threads

The Standard R Interface

Revolution R Environment Script(s) Console

Revolution R Environment Running R Script

Revolution R Environment Running Line or Section

Revolution R Environment Installed/ Loaded Packages Available Objects Object Details

Revolution R Environment Project Manager

Solutions o Corresponds to one R workspace/working directory o Storage for common files for projects Project o Independent set of R scripts Scripts and Documentation o Single Files that can be sourced, run, viewed, etc.

Scripts R syntax checking and parenthesis highlighting IntelliSense word completion o CTRL+Space Setting Breakpoints o Breakpoints tell the R debugger where to stop execution, so that you can examine the state of the computation at that point. o Place the cursor anywhere on the desired line and press F9. o Click the gray bar to the left of the desired line. o Repeat the procedure to delete the breakpoint. Run all or part of a script in the command window Set Bookmarks o Bookmarks make it easy to move from place to place within a large script, and also to move from script to script. You set bookmarks using any of the following methods: o Place the cursor anywhere on the desired line and press CTRL-K, CTRL-K. o Repeat the procedure to delete the bookmark. Automatically comment out sections

Snippets A predefined template for common R idioms o Insert snippet, then fill in the blanks o Right Click ->Insert Snippet Code Snippet Manager o Create and Share your own snippets (Using XML and Visual Studio) o Allows you to automate programming frequent tasks o NOT the same as a SAS macro Standardize analyses and enforce coding standards

Snippets in Revolution R

Debugging Revolution R has a debugging feature o Helpful to identify reasons code won’t run o Excellent way to check more complicated code Complex analyses Simulation Studies o Also extremely helpful if you are writing an R package

Debugging in Revolution R Debugging

Debugging in Revolution R Debugging

Available Objects Inspect objects in current environment List installed and loaded packages Browse objects in packages Inspect and edit data Plot data objects

Other Interactive Debug Feature o Debug vs. Release mode: control whether breakpoints are used o Step Execution

ShortcutAction Ctrl-ASelect All Ctrl-BNew Breakpoint Ctrl-CCopy Ctrl-FFind Ctrl-LCut current line or selection to clipboard Ctrl-NNew File Ctrl-OOpen File Ctrl-PPrint Ctrl+RCtrl+R, Ctrl+W - View white space Ctrl+R, Ctrl+SRun Selection Ctrl+R, Ctrl+CRun Current Script Ctrl-TTranspose characters Ctrl-UChanges selected text to lowercase Ctrl-VPaste Ctrl-WSelects the word containing the cursor or to the right of the cursor Ctrl-XCut Ctrl-YRedo Ctrl-ZUndo

DPHS Cluster This only works for Revolution R Enterprise

Accessing The Cluster PHSCLUSTER <- RxHpcServer( #Location of revolution R Enterprise on each node revoPath="C:\\Revolution\\R-Enterprise-Node-6.1\\R \\bin\\x64", #Location of big Data files on each node dataPath="c:\\data", #User Directory for read/write shareDir="\\Clustershare\\cne2", ) #Sets Compute Context to the Cluster rxOptions( computeContext = PHSCLUSTER ) #Sets Compute Context to the Local Machine rxOptions( computeContext = RxLocalSeq())

Accessing The Cluster PHSCLUSTER <- RxHpcServer( #Location of revolution R Enterprise on each node revoPath="C:\\Revolution\\R-Enterprise-Node-6.1\\R \\bin\\x64", #Location of big Data files on each node dataPath="c:\\data", #User Directory for read/write shareDir="\\Clustershare\\cne2", ) #Sets Compute Context to the Cluster rxOptions( computeContext = PHSCLUSTER ) #Sets Compute Context to the Local Machine rxOptions( computeContext = RxLocalSeq())

Accessing The Cluster PHSCLUSTER <- RxHpcServer( #Location of revolution R Enterprise on each node revoPath="C:\\Revolution\\R-Enterprise-Node-6.1\\R \\bin\\x64", #Location of big Data files on each node dataPath="c:\\data", #User Directory for read/write shareDir="\\Clustershare\\cne2", ) #Sets Compute Context to the Cluster rxOptions( computeContext = PHSCLUSTER ) #Sets Compute Context to the Local Machine rxOptions( computeContext = RxLocalSeq())

Accessing The Cluster PHSCLUSTER <- RxHpcServer( #Location of revolution R Enterprise on each node revoPath="C:\\Revolution\\R-Enterprise-Node-6.1\\R \\bin\\x64", #Location of big Data files on each node dataPath="c:\\data", #User Directory for read/write shareDir="\\Clustershare\\cne2", ) #Sets Compute Context to the Cluster rxOptions( computeContext = PHSCLUSTER ) #Sets Compute Context to the Local Machine rxOptions( computeContext = RxLocalSeq())

Accessing The Cluster PHSCLUSTER <- RxHpcServer( #Location of revolution R Enterprise on each node revoPath="C:\\Revolution\\R-Enterprise-Node-6.1\\R \\bin\\x64", #Location of big Data files on each node dataPath="c:\\data", #User Directory for read/write shareDir="\\Clustershare\\cne2", ) #Sets Compute Context to the Cluster rxOptions( computeContext = PHSCLUSTER ) #Sets Compute Context to the Local Machine rxOptions( computeContext = RxLocalSeq())

Accessing The Cluster PHSCLUSTER <- RxHpcServer( #Location of revolution R Enterprise on each node revoPath="C:\\Revolution\\R-Enterprise-Node-6.1\\R \\bin\\x64", #Location of big Data files on each node dataPath="c:\\data", #User Directory for read/write shareDir="\\Clustershare\\cne2", ) #Sets Compute Context to the Cluster rxOptions( computeContext = PHSCLUSTER ) #Sets Compute Context to the Local Machine rxOptions( computeContext = RxLocalSeq())

Accessing The Cluster PHSCLUSTER <- RxHpcServer( #Location of revolution R Enterprise on each node revoPath="C:\\Revolution\\R-Enterprise-Node-6.1\\R \\bin\\x64", #Location of big Data files on each node dataPath="c:\\data", #User Directory for read/write shareDir="\\Clustershare\\cne2", ) #Sets Compute Context to the Cluster rxOptions( computeContext = PHSCLUSTER ) #Sets Compute Context to the Local Machine rxOptions( computeContext = RxLocalSeq())

Setting a Progress Timer #Create a Progress Bar Object pb <- winProgressBar(title = "progress bar", min = 0, max = total, width = 300) for(i in 1:total){ data1<-rnorm(n=100,mean=0,sd=1) #Update the Progress Bar with the Current Unit setWinProgressBar(pb, i, title=paste( round(i/total*100, 0), "% done")) #Pause the system in order to update the progress bar (may not be necessary) #Sys.sleep(0.1) } close(pb)

Other Features

RevoScaleR Package

DeployR

DeployR