-
Notifications
You must be signed in to change notification settings - Fork 73
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
Is it possible to flush output from a Shelter? #412
Comments
There is not, sorry. See the discussions at #375 and emscripten-core/emscripten#2770 (comment) for more details. I think right now the best you can do is append something like If there is truly no better alternative with Emscripten, and you think it would be useful, we could possibly add an option to |
An option to print a newline and strip it if the last line is empty would solve this for me, I think. |
Thinking about this some more, #375 was about the console experience rather than capturing output. The fact that the final output line is not captured at all when using |
Thanks, George! |
No worries, I'll tag a release soon so that you can pin to v0.3.3. |
I use
Shelter.captureR
calls to evaluate code. It seems that the output is a list of all completed lines in the process's output. If I output some text that doesn't end in a newline, for examplecat("hey")
, it's not included in the output.I couldn't see a method to flush the output, or an option for
captureR
. Is there one?The text was updated successfully, but these errors were encountered: