Need to use perl to remove '%' from .Rnw file