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

printline function ignores format settings when printing numeric values #120

Closed
Yuri05 opened this issue Sep 16, 2022 · 0 comments · Fixed by #130
Closed

printline function ignores format settings when printing numeric values #120

Yuri05 opened this issue Sep 16, 2022 · 0 comments · Fixed by #130
Assignees
Labels
bug Something isn't working

Comments

@Yuri05
Copy link
Member

Yuri05 commented Sep 16, 2022

I think the error is in the printline function of ospsuite.utils:

entries <- c(entries, value)
entries <- c(entries, "\n")
cat(entries, sep = " ")

It just prints the value via cat.
But it should check first if the value is numeric and e.g. convert it to string using the format function.
Then the output would be as expected.

> format(dataSet$LLOQ)
[1] "1"

Originally posted by @Yuri05 in Open-Systems-Pharmacology/OSPSuite-R#1123 (comment)

@Yuri05 Yuri05 transferred this issue from Open-Systems-Pharmacology/OSPSuite-R Sep 16, 2022
@Yuri05 Yuri05 changed the title I think the error is in the **printline** function of **ospsuite.utils**: printline function ignores format settings when printing numeric values Sep 16, 2022
@Yuri05 Yuri05 added the bug Something isn't working label Sep 16, 2022
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
3 participants