[R] Mac shortcut for running a script

2011-12-13 Thread asafw
Hi, I wonder if there is a mac equivalent to ctrl+r shortcut for running a script line.. (I am using MAC OS X 10.7.2). I saw this post http://r.789695.n4.nabble.com/Shortcut-to-run-script-tp1016619p1016619.html but couldn't find an answer... Thanks a lot, Asaf -- View this message in

[R] predict for a cv.glmnet returns an error

2011-11-01 Thread asafw
Hi there, I am trying to use predict() with an object returned by cv.glmnet(), and get the following error: no applicable method for 'predict' applied to an object of class cv.glmnet What's wrong? my code: x=matrix(rnorm(100*20),100,20) y=rnorm(100) cv.fit=cv.glmnet(x,y)