1 2R version 2.9.2 (2009-08-24) 3Copyright (C) 2009 The R Foundation for Statistical Computing 4ISBN 3-900051-07-0 5 6R is free software and comes with ABSOLUTELY NO WARRANTY. 7You are welcome to redistribute it under certain conditions. 8Type 'license()' or 'licence()' for distribution details. 9 10 Natural language support but running in an English locale 11 12R is a collaborative project with many contributors. 13Type 'contributors()' for more information and 14'citation()' on how to cite R or R packages in publications. 15 16Type 'demo()' for some demos, 'help()' for on-line help, or 17'help.start()' for an HTML browser interface to help. 18Type 'q()' to quit R. 19 20[R.app GUI 1.29 (5464) i386-apple-darwin8.11.1] 21 22> x <- function {} 23Error: syntax error 24> x <- function() {} 25> x <- function() { 26+ cat("hello") 27+ cat("world") 28+ } 29> x 30function() { 31cat("hello") 32cat("world") 33} 34> x() 35helloworld 36> 2 + 2 37[1] 4 38>