Revert "R-Invest source file"

This reverts commit b1c8a0510da300039618d8bdcab6835241384b0f.