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

Support for importing openxlsx worksheet objects #1617

Open
Mkranj opened this issue Apr 4, 2024 · 0 comments
Open

Support for importing openxlsx worksheet objects #1617

Mkranj opened this issue Apr 4, 2024 · 0 comments
Assignees

Comments

@Mkranj
Copy link

Mkranj commented Apr 4, 2024

The gt package looks great. Would it be possible to convert openxlsx worksheets (parts of an Excel workbook, handled by the openxlsx package) into gt objects?
Ideally, this would preserve the formatting (colors, numerical formatting...) as well as merged cells (certain headers, descriptive sidebars...). With this, you could read a formatted Excel file from disk and preserve its look in a Quarto doc or Shiny app.
Suggested api:

ex_workbook <- openxlsx::loadWorkbook("my_excel.xlsx")

converted_gt <- gt::convertOpenxlsx(ex_workbook, sheet = 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants