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

cbind_rtables loses formats of individual tables that are combined #112

Closed
danielinteractive opened this issue Oct 21, 2020 · 4 comments
Closed
Assignees
Labels
Projects

Comments

@danielinteractive
Copy link
Contributor

danielinteractive commented Oct 21, 2020

library(rtables)

tab1 <- rtable(
  header = "a",
  rrow("one", 1.1111111, format = "xx.x")
)
tab2 <- rtable(
  header = "b",
  rrow("one", 2.2222222, format = "xx.xxxx")
)

wrong_format <- cbind_rtables(tab1, tab2)

It seems like only the format of the left table is used, so that the formats of the right table are overwritten wrongly by the left table formats. We would want the formats to stay correct per column/sub table. (same session info here as in #111)

@gmbecker
Copy link
Collaborator

gmbecker commented Oct 21, 2020 via email

@danielinteractive
Copy link
Contributor Author

Thanks @gmbecker . Will be great to have this fixed.

@gmbecker
Copy link
Collaborator

This is fixed in 24a972c but that unearthed a bug, which is now fixed in 13f32f1

Make sure you use version 0.3.2.17.9035, from the latter commit, to get both this and the unearthed bug fixed.

Thanks for the report.

TableTrees automation moved this from ToDo to Done Oct 22, 2020
@danielinteractive
Copy link
Contributor Author

Thanks a lot @gmbecker !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
TableTrees
  
Done
Development

No branches or pull requests

2 participants