attempt to fix R modular examples

don't do feature setting in constructor but separately