The mgcv package does not provide the penalized deviance of a fitted gam. Thus, these are modified functions of the mgcv package to get this penalized deviance.
Simon Wood