Update: knitr 1.2 is on CRAN now, in which this problem was fixed.
I think I have fixed this problem in the development version, which will be on CRAN soon. For now, please try
install.packages('knitr', repos = 'http://www.rforge.net/', type = 'source')