Closed emstruong closed 3 months ago
Apologies for getting back on this so late.
When using RMarkdown (i.e., interactive use), one of the things that we tried to support with the library was to provide constant feedback just like a user would receive if there were implementing non-multiverse analysis. However, this becomes tricky due to the large number of analyses in a multiverse, so we pick a "default" analysis, nominally the one which is the result of picking the first option for each decision.
Unfortunately, when compiling with knitr, we do not have as much control and so what happens is that for every code block, all the analyses will get executed. Thus when you print whilst compiling knitr, we can only support one of the following types of behaviors:
As you can probably tell, there's no right or wrong approach here, just a question of which behavior of the library will surprise a user the least. i opened a separate issue for this specifically, but I am going to close this issue now.
Hello, thank you for the important and great package. Just bringing some of the discussion here because it's easier to read code on GitHub's UI.
If you use the following R Markdown file the "R Chunk in Question" produces different behavior between the knitted HTML version and the live R-Studio version. Specifically, the live version correctly has a
LR Chisq
of1322.7
. However, the knitted version seems to use the last branch of the multiverse and has aLR Chisq
of1311
.This is my version of R-Studio and I am running R 4.3.1:
R Markdown Code RChunkb4MV.txt
title: "R Chunk Before MV Chunk" output: html_document date: "2023-11-14"