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

Feature request: as.expression(lotri_object) puts labels on the same line #3

Open
billdenney opened this issue Jan 21, 2022 · 1 comment

Comments

@billdenney
Copy link
Contributor

Currently as.expression with labels shows the label on the next line. It would be preferable if label() were on the same line.

@mattfidler
Copy link
Member

This would be true for backTransform as well.

If you want to tackle this (though it isn't terribly high on my priority list), I would suggest

  • Create a new class of expressions for the lotri object expression
  • Have that new class printout the item correctly (probably by converting the expression to a string and joining label() and backTransform() lines, while maintaining that this is a R expression.

R has its own method for doing this, the srcref. However, I havent' figured out how to add this without saving the file and then parsing it while keeping the source.

When I was working on drake I noticed that you can change the underlying source code any way you like. If the srcref remains the same it shows the same old code. I was a bit frightened abut the implications of that...

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