-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
GitHub preview of README #399
Comments
I know, it's not great in the repo, but I like the way it looks on the pkgdown site. the table has links so an image of the table would not suffice |
I also tried to publish a reprex of code in a PR comment, but it does not work with github as for the README. Can we make this possible somehow? maybe a hidden as_gt()? edit no as_gt() is not working ofc |
How about a simple markdown table? I see nothing really special in that table. Except icons but that can be easily replaced I believe. My concern here is that this way of preview is applied elsewhere. For instance, on r-universe it's looking good. However, on RSPM it's not looking well and on rdocumentation is complitely gone. My point is that this is probably not only for GH. |
I don't have any issues with the way the table appears on any of those platforms 😆 and I prefer the clean look of the html table compared to a markdown table If you want to put together a PR swapping to a vanilla markdown table, we can take a look though! |
Ok I see. Pawel's issue is different. I agree with @ddsjoberg for the readme, but for future github prints with reprex I would use this: # Example 1 ----------------------------------
library(gtsummary)
trial |>
select(age, grade, response) |>
tbl_summary() |>
gtsummary::pkgdown_print.gtsummary()
Created on 2025-02-18 with reprex v2.1.1 |
@Melkiades I think you're referring to something a little different. When the README.Rmd is rendered it creates the README.md and pkgdown only uses the md file and does not re-render the Rmd file. |
After discussion with the cards dev team, we will keep the gt table. But we will put it in a Things to check out:
|
The table in Other Resources is not GitHub friendly
https://github.com/insightsengineering/cards?tab=readme-ov-file#other-resources
The text was updated successfully, but these errors were encountered: