Skip to content

Fix formatting of Diagnostics#24

Merged
jsnel merged 1 commit into
glotaran:mainfrom
s-weigand:fix-wrapping
Mar 2, 2021
Merged

Fix formatting of Diagnostics#24
jsnel merged 1 commit into
glotaran:mainfrom
s-weigand:fix-wrapping

Conversation

@s-weigand
Copy link
Copy Markdown
Member

@s-weigand s-weigand commented Mar 2, 2021

I could reproduce the error described in #13, and it is a problem with how the diagnostics are created and a somewhat hidden feature of print .
The diagnostics output is created using print

output$consoleOutput <- renderPrint({print(resultToPrint)})

And the problem is that print uses the width of the console (getOption("width")), which was used to start paramGUI, for formatting the output.

You can reproduce this error by making the RStudio Window very narrow (e.g. getOption("width") == 30)

This behavior can be changed by setting a fixed value for the with (100 should be enough I hope).

closes #13

Base automatically changed from master to main March 2, 2021 18:44
@jsnel jsnel merged commit f0356a2 into glotaran:main Mar 2, 2021
@s-weigand s-weigand deleted the fix-wrapping branch March 3, 2021 13:28
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

Successfully merging this pull request may close these issues.

formatting problem with Diagnostics of e.g. Spectrotemporal model

2 participants