Infrared R-operation and ultraviolet counterterms in the MS-scheme