Skip to content

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

@anthonyhaffey

Description

@anthonyhaffey

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions