Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

marginfigure doesn't show when echo=FALSE globally #15

Open
1beb opened this issue Oct 17, 2016 · 2 comments
Open

marginfigure doesn't show when echo=FALSE globally #15

1beb opened this issue Oct 17, 2016 · 2 comments

Comments

@1beb
Copy link

1beb commented Oct 17, 2016

When reporting to clients, they tend not to care (nor wish) to see the code. This means it's common to set knitr options such that echo=FALSE. With this option set, arbitrary marginfigure chunk content is not shown and this fact is not otherwise documented. However, it's easily fixed by add echo=TRUE to the marginfigure chunk option. I do not know if this effects the LaTeX version, as I don't use latex.

I submitted a PR to rstudio/tufte for this, not sure if your repo will pick it up automatically or not:

rstudio/tufte#24

@lrdegeest
Copy link

The only way I have gotten around this is setting echo=TRUE in every marginfigure environment.

@eddelbuettel
Copy link
Owner

Hm. Can you try as a global knitr option?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants