tutoR-package {tutoR} | R Documentation |
User-friendly package that masks common functions. Help available giving examples first off. Deskcheck for testing user-defined defined functions.
Package: | tutoR |
Type: | Package |
Version: | 0.3.2 |
Date: | 2006-11-24 |
License: | GPL version 2.0 |
Package to mask common functions so that inputs in error are explained and able to be corrected, prior to execution. 'assist' offers step-by-step assistance to correctly call a function such as 'par'. 'eg' picks out Examples first and foremost in help. With 'deskcheck', execution is initiated and the 'debug' flag utilized, to help deskcheck a function.
Mark Fielding <M.Fielding@ms.unimelb.edu.au>, Dept. Mathematics and Statistics, The University of Melbourne
eg() ## Gives Help Menu to help get started. eg(plot) ## Picks out 'Examples', 'Description', 'Usage', ## followed by 'Arguments' and 'See Also'. sin(45) ## suggests a conversion, degrees to radians assist() ## Will request which function to assist with x <- 1:9 assist(matrix) ## To construct say: matrix(x^2, byrow=TRUE, ncol=3) myfunc <- function(x, y) { ANSWER <- 1 for(i in 0:(y-x)) { ANSWER <- ANSWER * (y-i) } return(ANSWER) } deskcheck(myfunc) # sets debug() flag and initiates execution