1 R in Windows: Startup on ITaP mounted files Click start on lower left in search box: [R] [return] Click on RProjectx64 3.1.1 The R working directory (i.e., the folder with .RData and often files read and written) Get the name of the current working directory > getwd() [1] "\\\\myhome.itap.purdue.edu/puhome/My Documents" This is the ITaP default Change this working directory, first make folder W:/R course outside of R. > setwd("W:/R course") > getwd() [1] "W:/R course" List files in the current working directory > list.files() 2 R in Linux or iOS: Startup Open a Terminal cd into the directory which will be the working directory Then type R > getwd() > setwd("/home/tongx/R course") > list.files() 3 Login to Linux server on Windows machine Active the connection between local machine and server Click the Start on lower left in search box: [putty] [return] Click on putty.63 In the Host Name, type in: hathi.rcac.purdue.edu. Port keep as 22. Connection type is: SSH. In Saved Sessions, type in Hathi. Then click the Save button on the right. Type in your Purdue account and the passward. Then press Enter. Now you are successfully connecting to the front-end of Hathi cluster. 4 Login to Linux Server on Linux Machine Open an command terminal Type in: ssh
[email protected] Type in your passward. Now you are on Hathi front-end 5 Hathi Cluster One front-end server into which user logs in • 16 cores • 24.5 GG RAM 6 nodes on the Hadoop cluster Each node • 16 cores • 32 GB memory • HDFS storage: 48 TB 6 Hathi Cluster Try some linux commands: mkdir R LIBS : create a directory named R LIBS mkdir stat695v : create a directory named stat695v ls : list all files and directories in current working directory pwd : print current working directory cd stat695v : change current working direcotry to stat695v module add r/3.1.0 7 Hathi cluster Type R in the terminal.