In simple linear regression R-squared = residual SS/total SS. However in generalised linear models, the equivalent of residual SS is residual deviance and equivalent of total SS is null deviance.

Iíve recently read a few papers which have given the R-squared value for generalised linear models. Is the R-squared value in a
generalised linear model simply residual deviance/residual null?