-
Notifications
You must be signed in to change notification settings - Fork 1
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
New styling method #41
Conversation
These functions define a set of openxlsx Styles for the different elements used in a formatted table.
This allows to specify the styling theme of the table.
J'ajoute une todo-list :
Morceau de code pertinent : toxlsx(mtcars, path)
wb <- openxlsx::loadWorkbook(file.path(path, "Export.xlsx"))
for (sheet in wb$sheet_names) {
openxlsx::pageSetup(wb, sheet, orientation = "landscape", fitToHeight=TRUE)
}
openxlsx::saveWorkbook(wb, file.path(path, "Export_preview.xlsx"), overwrite=TRUE)
Sys.setenv(LD_LIBRARY_PATH = "/usr/lib/libreoffice/program")
system2("/usr/bin/libreoffice", args = c("--headless",
"--convert-to",
"png",
shQuote(file.path(path, "Export_preview.xlsx")))
) |
Cool très ambitieux comme TODO @JulienBlasco ! J'adore l'idée de GHA pour libreoffice 😍 |
Je propose de fusionner cette branche pour publier rapidement une version 1.1.0 et profiter des nouveaux thèmes et surtout du fix de #18 . Je crée une nouvelle issue pour la refonte des exemples |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
C'est ok pour moi @JulienBlasco, la documentation sera complétée dans une autre PR
C'est bon @JulienBlasco j'ai publié la release et une la v1.1.0 vient d'être publiée sur le CRAN : https://cran.r-project.org/web/packages/tablexlsx/index.html |
Starting a pull request on a new method for styling elements. This should solve #10
It is an extension of the provided list
style
, which is based on constructor functions such asxls_theme()
and its wrappers.They can be passed to
toxlsx
andadd_table
as thetheme
andTheme
arguments.This is still work in progress:
xls_theme_plain()
andxls_theme_default()
wrappers.toxlsx
andadd_table
xls_theme_default()
(according to Simplify default styling #40 )