search for: removeask

Displaying 1 result from an estimated 1 matches for "removeask".

Did you mean: remotetask
2011 Sep 06
1
object.size() not recognized within .First()
I have a function called within .First(), as in .First=function() { ...blah... BIG(partofblah) #BIG is my function, n=partofblah when called ...foo... } The partofblah component of blah is a number obtained from readline(), which is then an argument to BIG() BIG=function(n=10,removeask=T) { z <- sapply(ls(pos=1), function(x)object.size(get(x))) ...stuff... } When .First() executes upon startup and readline() determines partofblah, the call to BIG() creates an error as follows: Hello. How many huge items to consider deleting? (Enter=none) 3 Error in FUN(c("a&quo...