You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
library(tinytable)
library(tinytex)
packageVersion("tinytable")
#> [1] '0.2.1.4'tinytex::tlmgr_version()
#> tlmgr revision 70671 (2024-03-17 02:10:09 +0100)#> tlmgr using installation: C:/Users/etienne/AppData/Roaming/TinyTeX#> TeX Live (https://tug.org/texlive) version 2024dest<- tempfile(fileext=".pdf")
### No caption works fine
tt(mtcars) |>
save_tt(dest)
### Adding a caption errors
tt(mtcars, caption="foo") |>
save_tt(dest, overwrite=TRUE)
#> ! LaTeX Error: \caption outside float.#> Error: LaTeX failed to compile idix9jyl0ekzcvee9gaisf.tex. See https://yihui.org/tinytex/r/#debugging for debugging tips. See idix9jyl0ekzcvee9gaisf.log for more info.
The text was updated successfully, but these errors were encountered:
The root of the issue is that we use the standalone LaTeX package to save a cropped table to file, but that package does not easily seem to accommodate floats with captions.
I need to do an overhaul of captions for all formats (see #208), but it might take me a little while.
The text was updated successfully, but these errors were encountered: