Closed atsyplenkov closed 8 months ago
I believe you are trying to use a Jupyter Notebook only feature: https://quarto.org/docs/authoring/notebook-embed.html
So it won't work with engine: knitr
. @dragonstyle as it change ? Otherwise we could maybe try to stop early when we detect engine knitr and embed shortcode usage ?
I believe you are trying to use a Jupyter Notebook only feature: https://quarto.org/docs/authoring/notebook-embed.html
So it won't work with
engine: knitr
. @dragonstyle as it change ? Otherwise we could maybe try to stop early when we detect engine knitr and embed shortcode usage ?
Thanks for the prompt response! I don't understand how than it works in manuscript
projects. For example see — https://mine.quarto.pub/manuscripts-conf23/#/embedded-computations
Roughly speaking, the only difference between slides and mine reprex is that the project type wasn't specified. Could that be the reason?
Oh yes new manuscript format and features. Sorry - I missed that. 🤦 Thanks for additional content !
Recent work have support for .qmd embedding indeed using intermediary files. I see there was a bug with fig-
at some point (https://github.com/quarto-dev/quarto-cli/issues/6959) so maybe there is one with tbl-
.
@dragonstyle will known more.
Recent work have support for .qmd embedding indeed using intermediary files. I see there was a bug with
fig-
at some point (#6959) so maybe there is one withtbl-
.
Sure it is! tbl-cap
was the reason for the strange behavior. Moreover, it fully depends on the project type. For example, switching the project to the manuscript
type will not throw an error, but it will not render tables (example 1). Removing tbl-cap
in the manuscript
type will result in rendering only the knitr::kable
table (example 2). Removing the project type, i.e., reproducing my initial issue without tbl-cap
options, will render only the kable
table expanded to the full width (example 3). Note that the gt
table failed to embed but did not throw any error, while the kable
table embedded successfully but without the Table 3 heading!
It turns out that only knitr::kable
tables could be embed, while kableExtra
, gt
and hux
are not.
original issue switched to manuscript
type with tbl-cap
original issue switched to manuscript
type without tbl-cap
original issue without tbl-cap
options
Thanks for the additional details - I am tracking down the issues and think I know how to fix... will update here soon...
This is resolved in the current Quarto pre-release.
@dragonstyle I'm still unable to render gt tables using a manuscript project type using quarto version 1.5.22 or 1.4.358. are there plans to add gt and other tables for manuscripts in the future? Or are there ways around this problem you know of?
@DOH-FAA3303 please provide a reproducible example as plain text or a Git repository. We can't work with "it does not work for me".
I suggest you open a new issue (possibly linking this one) with a reproducible example and all information requested in the template. Thank you for your cooperation and bug report.
Recent work have support for .qmd embedding indeed using intermediary files. I see there was a bug with
fig-
at some point (#6959) so maybe there is one withtbl-
.Sure it is!
tbl-cap
was the reason for the strange behavior. Moreover, it fully depends on the project type. For example, switching the project to themanuscript
type will not throw an error, but it will not render tables (example 1). Removingtbl-cap
in themanuscript
type will result in rendering only theknitr::kable
table (example 2). Removing the project type, i.e., reproducing my initial issue withouttbl-cap
options, will render only thekable
table expanded to the full width (example 3). Note that thegt
table failed to embed but did not throw any error, while thekable
table embedded successfully but without the Table 3 heading!It turns out that only
knitr::kable
tables could be embed, whilekableExtra
,gt
andhux
are not.Example 1
original issue switched to
manuscript
type withtbl-cap
Example 2
original issue switched to
manuscript
type withouttbl-cap
Example 3
original issue without
tbl-cap
options
@mcanouil I meant i reproduced this example exactly and was unable to render the gt table. I will make a new issue
Thanks for the clarification.
Unfortunately, using screenshots is really a pain. @DOH-FAA3303 since you tried somehow the examples, would you mind sharing a Git repository which could be use to reproduce the issue (and possibly reopen the GitHub issue)?
Unfortunately, using screenshots is really a pain. @DOH-FAA3303 since you tried somehow the examples, would you mind sharing a Git repository which could be use to reproduce the issue (and possibly reopen the GitHub issue)?
I just submitted a new issue with the example in markdown @mcanouil
Bug description
I am attempting to embed a table from one .qmd file into another .qmd file (parent document). However, regardless of how the table is rendered (using kable, gt, or hux), the embedding process causes the rendering to fail with the following errors. Individually, each quarto document renders successfully to .html.
Steps to reproduce
There are two documents. One is the parent document, the second is the supplementary document (named
inset-table.qmd
).Parent document
{{< embed inset-table.qmd#tbl-two >}}
Your environment
IDE: RStudio 2023.09.1+470 "Desert Sunflower" Release (ecb7e65667c9e2f54fdec9e313f24df8c7b71adc, 2023-10-04) for windows Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) RStudio/2023.09.1+470 Chrome/116.0.5845.190 Electron/26.2.4 Safari/537.36
OS: Windows 10 Enterprise, 22H2, OS build 19045.3570
R:
R version 4.3.1 (2023-06-16 ucrt) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 10 x64 (build 19045)
Matrix products: default
locale: [1] LC_COLLATE=English_United States.utf8 LC_CTYPE=English_United States.utf8
[3] LC_MONETARY=English_United States.utf8 LC_NUMERIC=C
[5] LC_TIME=English_United States.utf8
time zone: Pacific/Auckland tzcode source: internal
attached base packages: [1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached): [1] digest_0.6.33 utf8_1.2.3 R6_2.5.1 fastmap_1.1.1
[5] tidyselect_1.2.0 magrittr_2.0.3 glue_1.6.2 tibble_3.2.1
[9] htmltools_0.5.6 pkgconfig_2.0.3 gt_0.10.0 dplyr_1.1.3
[13] generics_0.1.3 lifecycle_1.0.3 xml2_1.3.5 cli_3.6.1
[17] fansi_1.0.4 vctrs_0.6.3 compiler_4.3.1 rstudioapi_0.15.0 [21] tools_4.3.1 pillar_1.9.0 rlang_1.1.1