Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

permit negative indexes on row_spec and column_spec #741

Closed
mgacc0 opened this issue Jan 19, 2023 · 3 comments
Closed

permit negative indexes on row_spec and column_spec #741

mgacc0 opened this issue Jan 19, 2023 · 3 comments

Comments

@mgacc0
Copy link

mgacc0 commented Jan 19, 2023

Would you consider of interest implementing the possibility of specifying negative indexes on the row number of row_spec (and also on the column number of column_spec)?
It is very common needing to apply a certain format to the last row. And it would be easier if we could write row_spec(-1, ...).

@dmurdoch
Copy link
Collaborator

dmurdoch commented Dec 2, 2023

In R, an index of -1 generally means every entry except number one, so I'd expect that to mean all rows except the first.

@krivit
Copy link

krivit commented Mar 6, 2024

Up until 989d6dc, row_spec(-1, ...) would affect the first row of a two-row header. However, this does not appear to have been intended functionality but rather a serendipitous feature.

Since 989d6dc, it just produces an error.

@dmurdoch
Copy link
Collaborator

dmurdoch commented Mar 6, 2024

I think the proposal in #827 makes more sense in R than this one, so I'm going to close this issue.

@dmurdoch dmurdoch closed this as completed Mar 6, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants