Allow specifying custom R command