-
Notifications
You must be signed in to change notification settings - Fork 50
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
main_footer is not indented if table_inset is not 0 and tf_wrap = FALSE #705
Comments
Hi @clarkliming , I was wondering if the expected outcome is as the following?
|
yes |
@clarkliming This code tells rtables to not wrap the footer, and then manually put in a We also provide a max-title/footer width, which behaves with table inset, so its unclear why there would be code that is turnign that off, and then trying to do it itself. |
No automatic wrapping because it usually does not look good, information are mixed and is not clear. So manual wrapping is needed here. But when wrapping manually, it is ridiculous to not indent each line with the table_inset. So if it has to be a single line of text to disable "tf_wrap" why bother provide this control we can tell if the text contains line breaks or not. And if the table_inset do not deal with the footer,does it means that everytime i change the table inset i have to update the footnotes? That is even more ridiculous. |
First off, I do not appreciate the tone. Especially, since if you had bothered talk to me or otherwise report the difficulties you were having with wrapping, you would have known that this is a fully solved problem and the work around you're having trouble with is not needed, because
|
sorry about the tone. If the "main_footer" can be character vector, it solve the issue, but the documentation here may need to be updated. and running the following code gives
|
So the documentation is correct, but a bit subtle, I don't object to it being more explicit. For all argument descriptions in formatters/rtables, the first element of the argument description is the type of object it takes. For That last warning is a bug. (it will actually be an error in some versions of R). I have fixed it in the above pull request for formatters, though I don't know if it will get into this release. Thats up to @shajoezhu and the CRAN team Note that for versions of R where it is a warning, the warning is annoying and wrong, but provided that the first element of prov_footer is not the empty string, the actual behavior (ie the text output by |
the document is not correct in #' @return a character scalar (`main_title`, `main_footer`), or
#' vector of length zero or more (`subtitles`, `page_titles`,
#' `prov_footer`) containing the relevant title/footer contents |
Correct, this is a documentation bug that should be fixed @Melkiades @ayogasekaram |
fixes warning regarding prov footer mentioned in insightsengineering/rtables#705
I think we can close this as the fix for documentation is tracked by another issue |
it looks strange that only the first line is indented
sessionInfo
The text was updated successfully, but these errors were encountered: