Problem with LaTeX table: ErrorL subscription out of bounds
Nobody has claimed this yet.
- Dominant language
- R
- Stars
- 199
- Forks
- 46
- PR merge metrics
- No merged PRs in 30d
Description
There is an error when generating LaTeX table in shinystan. I've run the model with brms, but this happens when also converting brms code and data to rstan:
library(brms)
library(rstan)
library(shinystan)
fit <- brm(
bf(mpg ~ 1 + (1 | cyl) + hp + wt, decomp = "QR"),
data = mtcars,
family = gaussian
)
code <- stancode(fit)
dat <- standata(fit)
fit2 <- stan(model_code = code, data = dat)
launch_shinystan(fit2) # or `brmsfit` fit
The error only happens when I select Quantile: 97.5%, see pics below:


Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by running the provided R example with brms, rstan, and shinystan, then select Quantile: 97.5% in the generated table view. Trace the LaTeX table generation entry point from launch_shinystan and identify why that quantile causes the bounds error; done means the table generates successfully at 97.5% without the subscription error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- latex, r
- Domain
- data-visualization
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100