Table function with table variable

remove this statement

SELECT PMProjNum, PMProjName FROM @R