improve Sweave compile experience; clean up unused event