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

Width too large #54

Open
krlmlr opened this issue Nov 21, 2024 · 6 comments
Open

Width too large #54

krlmlr opened this issue Nov 21, 2024 · 6 comments
Assignees

Comments

@krlmlr
Copy link
Contributor

krlmlr commented Nov 21, 2024

Code chunks run over horizontally, e.g., https://dm.cynkra.com/dev/ . How to configure?

image

@maelle
Copy link
Member

maelle commented Dec 10, 2024

What is the expected result, do you expect the overflow to be truncated?

Do you observe this on other pages? Here I feel the best would be for the "Metadata" horizontal rules to output less hyphens in pkgdown maybe?

@maelle
Copy link
Member

maelle commented Dec 10, 2024

The example for cat_rule() on https://cli.r-lib.org/reference/cat_line.html has overflow too.

@maelle
Copy link
Member

maelle commented Dec 10, 2024

cat_rule() passes the width argument to rule(). It defaults to console_width() that is responsive to the option cli.width. We cannot set the option from cynkratemplate.

@maelle
Copy link
Member

maelle commented Dec 10, 2024

pkgdown doesn't re-build the README.

Line to add in a chunk:

options(crayon.enabled = TRUE, width = 75, cli.width = 75)

@maelle
Copy link
Member

maelle commented Dec 10, 2024

I'm a bit confused by README.md/index.md (even if that rings a bell!).

@krlmlr
Copy link
Contributor Author

krlmlr commented Dec 10, 2024

I thought that cli.width would get its default from width ?

index.md is built from README.Rmd as a side effect: https://github.com/tidyverse/duckplyr/blob/3780916b4d441ac207e6830f96c02cc1452cd6ca/README.Rmd#L29 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants