R's "acf" function has three options, "covariance", "correlation" and "partial"; if we are planning to support "partial" in the ftuture, string argument may turn to be unavoidable...

You are right... good catch about `demean`; how shall we correct its type?