Closed abhsarma closed 2 months ago
Hmm yeah that's annoying. I assume the short-term fix is our own implementation of eng_r()
in the multiverse package again? You could do that for now and then once you're sure everything's working do a knitr PR.
Yeah that's what I did and it seems to solve things for now, but I'll check for more examples to see if this is sufficient to fix the problem
weird, seems like figures are handled differently. In the following code block, the first line produces the correct output, the second line does not:
```{multiverse default-m-2, inside = M}
df$damage
hist(df$damage)
is this related to all the crap we had to do to get figures working interactively way back when? I recall digging into this then but I don't remember the solution
From what I could understand, I don't think so? I think the problem right now is that the correct data variable cannot be accessed. The problem previously was that the figure/plot outputs were not shown, and the solution we had implemented previously (if I remember correctly) used evaluate and it just needed the new_device
argument to be set to FALSE. When the current eng_r
is executed, that is specified already.
K I don't think I have enough context to understand the issue at this point. The old problem I had to solve had to do with how figure output was handled differently from console output, and that was the whole reason for using evaluate()
and whatnot.
Best advice I can give here without seeing output is "have you stepped through it with a debugger?"
I created a fork of knitr which fixes these issues---the file from knitting produces the correct output. The problem seems to be coming from these lines, which I have commented out for now---but I am not sure what this does or how to get around the problem without simply removing this.
Also unable to test the forked project :/
@mjskay any thoughts?
Created a fork of knitr which potentially solves this problem. Need to check if knitr tests pass before submitting a PR
As discussed in #121 , this issue has been addressed by distinguishing between compiling as an EMAR vs compiling as a regular html_document, and the previous commit
Consider the following multiverse:
First we define a branch with a transformation and then print it