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

Subassignment to properties changes mode #73

Open
hughjonesd opened this issue Aug 1, 2018 · 1 comment
Open

Subassignment to properties changes mode #73

hughjonesd opened this issue Aug 1, 2018 · 1 comment

Comments

@hughjonesd
Copy link
Owner

E.g. this breaks:

ht <- hux(a = 1:2)
top_padding(ht)[1, 1] <- '6px'

top_padding(ht) # shows that default 4 has become character '4'
print_html(ht)    # and character 4 is interpreted as its own unit.
@hughjonesd
Copy link
Owner Author

It is hard to warn about this because before e.g. top_padding<- is called, [<- has been called on top_padding(ht) to create the full matrix of values. Hence the mode has already changed to something new before you can detect it.

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

1 participant