{"comment":{"user":{"id":346288,"login":"ramnathv","url":"https://api.github.com/users/ramnathv","avatar_url":"https://secure.gravatar.com/avatar/5cf92204cc3691d9a5155632012d8644?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"5cf92204cc3691d9a5155632012d8644"},"created_at":"2011-12-18T19:23:55Z","path":null,"updated_at":"2011-12-18T19:23:55Z","id":804556,"html_url":"https://github.com/yihui/knitr/commit/81ba064ee8#commitcomment-804556","position":null,"body":"I figure out what the issue is. You can reproduce the result by changing the `\\SweaveOpts` line in `knitr-minimal.Rnw`, and running `knit`.\r\nWhen the global options line is `%\\SweaveOpts{fig.path=figure/,align=center,fig.show=hold,cache=FALSE}`, you correctly get a warning message about deprecated options.\r\n\r\n```r\r\nWarning messages:\r\n1: In fix_options(params) :\r\n  option 'align' deprecated; use fig.align instead\r\n```\r\n\r\nNow, change the line to  `%\\SweaveOpts{fig.path=figure/,fig.align=center,fig.show=hold,cache=FALSE}`, you still get the warning, which is incorrect. This happens because `opts_chunk$get()` still has the option `align = center` persisting from the earlier run.\r\n\r\nA potential fix is to reset the deprecated options to NULL, after you run `fix_options()`.\r\n\r\n","url":"https://api.github.com/repos/yihui/knitr/comments/804556","line":null,"commit_id":"81ba064ee8ee21b1d2b6bfb342422c38c008f99e"}}