M = getBasis(n,R)
This function was not meant for general use, but it fixes the first degree in the degree tuple of the ring R, and finds a basis of that 'slice' of the ring. It does this by using a cached version of the ring that forgets all other degrees. A Ring object in Macaulay2 will not have this cached ring by default, but the rings used internally in the DGAlgebras package will.
The source of this document is in DGAlgebras.m2:1962:0.