Skip to content
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

Quarto fails to render due to missing sizeInfo$height? #113

Open
anthonyhaffey opened this issue Mar 1, 2023 · 0 comments
Open

Quarto fails to render due to missing sizeInfo$height? #113

anthonyhaffey opened this issue Mar 1, 2023 · 0 comments

Comments

@anthonyhaffey
Copy link

First - this looks amazingly useful, so thank you for making this!

I'm trying to bed excel sheets into a quarto project, and it looks like it makes different assumptions to a normal markdown, because when I write:

library(excelR)

data = data.frame(Model = c('Mazda', 'Pegeout', 'Honda Fit', 'Honda CRV'),
                 Date=c('2006-01-01', '2005-01-01','2004-01-01', '2003-01-01' ),
                 Availability = c(TRUE, FALSE, TRUE, TRUE))

columns = data.frame(title=c('Model', 'Date', 'Availability'),
                    width= c(300, 300, 300),
                    height = 500,
                    type=c('text', 'calendar', 'checkbox')) 
excelTable(data=data, columns = columns)

I can see the table correctly in the .qmd script editor. However, when I render the file as a quarto file I get the following error:

Quitting from lines 87-98 (normal.qmd)
Error in validateCssUnit(sizeInfo$height) :
"NApx" is not a valid CSS unit (e.g., "100%", "400px", "auto")
Calls: .main ... toHTML -> widget_html -> css -> dots_list -> validateCssUnit

Execution halted

I'm guessing that quarto renderer isn't making a sensible assumption about the height - but I haven't yet found a way to manually specify the height. Is there a manual way to do this? Should I use different code for quarto documents compared to markdowns?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant