add show fix
Merge pull request #147 from reinholdsson/show-fix

Fix show method when run inside knitr.