remove rapid miner repository, refactor R files