Fix compiler warning

* Changed all foo(const SEXP arg) to foo(SEXP arg)