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

r2rtf table outputs findings in report #236

Open
WL-smile opened this issue Nov 26, 2024 · 6 comments
Open

r2rtf table outputs findings in report #236

WL-smile opened this issue Nov 26, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@WL-smile
Copy link

Describe the bug
We have encountered regarding the outputs generated by R in report. It happened once we inserted and saved the rtf report.
It appears that the formatting issues we’re experiencing, such as certain lines wrapping to the next line are likely a general challenge associated with using R. It noticed that we only have issue for the complex title/footer (long footer; more than two rows header…).

Expected behavior
Once inserted and saved the outputs in reports, we expect no formatting change.

To reproduce
Please include a minimal reproducible example.
Consider using reprex.
N.A.

Screenshots
Header:
If applicable, add screenshots to help explain your problem.
image
Footer:
image

Session info
If the bug is related to specific package versions or version combinations,
paste the session info into the code block below.

Session Info
# Insert `sessionInfo()` or `devtools::session_info()` output here

Additional context
Add any other useful context about the problem here.

@WL-smile WL-smile added the bug Something isn't working label Nov 26, 2024
@WL-smile WL-smile changed the title r2rtf table outputs findings r2rtf table outputs findings in report Nov 26, 2024
@nanxstats
Copy link
Collaborator

I'm copying @elong0527 in case this reminds something relevant.

@elong0527
Copy link
Collaborator

Will need more context.

Is the table generated by r2rtf?

What's the approach you used to insert the output to another file?

In the meantime please refer the recommended approach. https://r4csr.org/tlf-assemble.html#using-toggle-fields

@WL-smile
Copy link
Author

nerated by

Hi Yilong, Yes, the tables are all generated by r2rtf. We use the same way as statistician to manually insert table (insert field -->includeText ) in report.
First, I tried by using 'alt + F9' and it does not help to remove the merge format.
Then I tried to using r2rtf::assemble_rtf to combine .rtf files, however I have an issue.
The other files work fine. But I could not combine Pill_test.rtf with other files due to the warning below. We tried to add an additional line to Pill_test.rtf, but still not working.
Here is the warning:
image
It is noticed that the highlighted in yellow part below is the difference compared to the other files which has no issue:
image

Thanks, Wenyu

@elong0527
Copy link
Collaborator

The "assemble_docx" is the recommended approach.

Please check the tips in section 9.2 and ensure you have removed "*mergeformat" within toggle fields. That might be the original issue you had.

@WL-smile
Copy link
Author

WL-smile commented Dec 4, 2024

The "assemble_docx" is the recommended approach.

Please check the tips in section 9.2 and ensure you have removed "*mergeformat" within toggle fields. That might be the original issue you had.

It still dose not help by removing 'mergeformet'. We did not find the reason why it works for some outputs, but not the other... Thanks.

@elong0527
Copy link
Collaborator

Please provide example files (without confidential information) to illustrate the issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants