-
Notifications
You must be signed in to change notification settings - Fork 300
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
Nested child documents requires full path when using flexdashboard and runtime set to shiny. #143
Comments
I think this is an issue with child documents in |
@jjallaire thanks for your reply! If you only include one child everything works (I have quite a few dashboards nesting children files only at one level and they work flawlessly even with runtime: shiny option). The problem only arises when nesting to more than one level, i.e. when you define a child in a child, like in the example I posted above. |
I think it is of help. With |
Yes, that's correct. The relevant code lives here: |
Thanks a lot @jjallaire and @jmcphers for looking into this! Do you want me to close the bug here and open it in the rmarkdown repo? I looked at the code but I am not sure I understand the logic well enough to come up with a solution, but will try as soon as I have some time. |
One other tip for you that might actually get you the behavior you want to is to use |
Another example of this was reported in rmarkdown: rstudio/rmarkdown#2419 |
Hi,
first of all thanks a lot for making
flexdashboard
it makes creating Shiny apps a breeze!I have a project made of
index.Rmd
,child.Rmd
andgrandchild.Rmd
(in the same directory).index.Rmd
contains:child.Rmd
contains:and
grandchild.Rmd
contains:When trying to compile
index.Rmd
(CTRL+SHIFT+K in RStudio Server) the compilation fails with error (in the Rmarkdown tab in RStudio):If you change
child.Rmd
to use the full path tograndchild.Rmd
then the dashboard is created without problems.
Initially I thought the problem was with knitr (I even reported a bug there that I closed yihui/knitr#1434) but then I realized that the problem only arise when I use
flexdashboard
andruntime: shiny
(if you removeruntime: shiny
fromindex.Rmd
the dashboard compiles, but of course you can't use Shiny control anymore, which makes using flexdashboard quite pointless).In normal Rmarkdown (to make html documents for example) you can nest
grandchild.Rmd
without having to specify the full path, which is why I think this behaviour inflexdashboard
is a bug.Cheers,
Luca
P.s. this is the output of sessionInfo()
The text was updated successfully, but these errors were encountered: