-
Notifications
You must be signed in to change notification settings - Fork 588
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
Create stitch example with chunk names and options? #33
Comments
Sorry, but no, |
Thanks for clarifying that, @yihui. I considered that possibility for a second, but these two entries in the NEWS file made me keep trying ways to get it working. I've submitted yihui/knitr#856 so hopefully you won't have to spend time on this question again. NEWS:
|
Ah, sorry, it looks like I have a regression bug somewhere. I'll look into it. Thanks for pointing it out. I even have forgotten I implemented this once :) |
I'm glad you said that. I thought my stitch scripts had been working at one point, but then thought that I must have misremembered the spin/stitch distinction or something. It's funny, but the spin & stitch functions were some of my favorite things when reading your knitr book last year. I use knitr a lot, and was already familiar with most o fthe book's lessons (although I use it so much, its certainly worth my time to review them). But those two functions had escaped my attention until the book. Stitch and spin fits such a nice need for when I want to record the results of a data manipulation (eg, how many missing values & successful/unsuccessful matches between record sets), but it's not really worth creating a separate Rmd file for. It's nice how knitr offers these light-weight derivative functions (instead of always requiring the user to use the full-blown approach) to adapt to the trade-offs of different scenarios. |
Okay, I just double checked it and the answer is no, I did not implement it. The NEWS item was misleading. Only chunk labels are supported, and chunk options are not. That said, I guess it is not too difficult to implement it anyway. Please open a new issue in the knitr repository so I will not forget it. Thanks! |
Cool. Then I guess I was simply misremembering. |
@yihui Is it possible to create a stitch example (like example 102), but with chunk options? I haven't seen a complete stitching example on any blog, in this repository, or in the demos in the knitr's inst/examples.
Stitching is working for me if I don't divide by chunks, but I'm doing something wrong when I either (a) separate them into chunks, or (b) set options (like the figure path, or the figure width).
The chunks are recognized with I replace
'+
with## @knitr
. But the relative paths for the images don't work, so they're not being embedded in the html as base64.An example might illuminate my mistakes (and hopefully helps others). Tell me if you want this posed to Stack Overflow instead of a GitHub issue.
This is one attempt, which was modified from the existing stitch example.
The text was updated successfully, but these errors were encountered: