-
Notifications
You must be signed in to change notification settings - Fork 110
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
Code Chunk in Aside #13
Comments
Sorry for the late response. You are the second one who requested this feature, so I'll consider it. It should be relatively easy to implement for LaTeX output, but might be a little tricky for HTML output, since I don't use the |
If I was a better developer I would have forked and given it a go myself, but I'm not and I think this feature would be really beneficial. Thanks yihui! |
I want to pitch in and say I am trying to hack a way to do this and |
@spholmes Sure I'll think about it. You were the first one who requested this feature :) |
I'm not sure whether it would be a related feature or a distinct one, but being able to include htmlwidgets as a margin content would be awesome. At the moment it's a bit frustrating that you're able to include static figures in margin but not dynamic ones. (I'm only thinking about HTML output, obvisouly). |
First of all, thank all those who have created and expanded R markdown, and especially Yihui. We have much to thank to you. |
+1 here, would be helpful to be able to add inline code in margin text. Especially for parameterized reporting this would be an excellent feature. Example usage case: A standardized report that has customized margin text by parameter. |
+1 for inline code in the margin for html output. |
+1, would be a great feature. |
+1 for code chunk in the margin! |
Anyone have done it? Thanks
|
Hi guys,
I've been using R Markdown for a while for assignments in university. My experience has been terrific and I am forever grateful to @yihui and the rest of R Studio for creating and supporting it. Some assignments require the inclusion of code in the document, and I thought using Tufte style margins might be nice for including one liners and short snippets.
I was hoping there would be chunk option, similar to fig.margin but I don't think this feature is supported. I've been looking all over but I cannot find simple way to hack it either. There is no mention or example in the RStudio material, however I did see something in Michael Sachs original example. To place the code chunk in the margin he included the html aside tags which doesn't seem to work as he's specified any more, and alludes to using the pandoc footnote syntax for LaTeX/PDF. Pandoc footnotes seem to work for outputting inline R results, but I can't get it to work for code chunks.
Is there a way to achieve this and/or are there future plans to implement something like it? I don't know if this feature clashes with the Tufte style and understand that if this were so this might make this issue irrelevant.
The text was updated successfully, but these errors were encountered: