eval tapply in an envir if supplied