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

Do not vertically align text in tables from Rd files #265

Open
etiennebacher opened this issue Mar 29, 2024 · 2 comments
Open

Do not vertically align text in tables from Rd files #265

etiennebacher opened this issue Mar 29, 2024 · 2 comments

Comments

@etiennebacher
Copy link
Owner

https://grantmcdermott.com/tinyplot/man/tpar.html#additional-graphical-parameters

I'd rather have the arg names not vertically centered, it makes it harder to distinguish to which argument the text corresponds when there are big paragraphs:

image

Not sure what role altdoc has in this (and it's very low priority) but I wanted to store this somewhere

@vincentarelbundock
Copy link
Collaborator

The intention is to top-align, and it seems to work here: https://marginaleffects.com/man/predictions.html

This is the line in altdoc which is responsible for this: https://github.com/etiennebacher/altdoc/blob/main/R/rd2qmd.R#L22

I'm not sure what is going on. Maybe there a semicolon missing? Not sure...

@vincentarelbundock
Copy link
Collaborator

This does not appear to be an altdoc problem. The issue is that @grantmcdermott is using a special tabular environment. A better way to handle this would be to enable markdown formatting in roxygen2, and to put the extra parameters in a markdown/ASCII table (ex: via tinytable)

@vincentarelbundock vincentarelbundock closed this as not planned Won't fix, can't repro, duplicate, stale Jul 4, 2024
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

2 participants