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

capture.output() does not work properly #525

Open
perNyfelt opened this issue Dec 29, 2020 · 0 comments
Open

capture.output() does not work properly #525

perNyfelt opened this issue Dec 29, 2020 · 0 comments

Comments

@perNyfelt
Copy link
Contributor

In GNU-R 3.5 the following code illustrates a simple use of capture.output:

> a <- capture.output(print("jabba"))
> print(a)
[1] "[1] \"jabba\""
> 

But in Renjin the same code results in

Renjin 3.5-beta76
Copyright (C) 2019 The R Foundation for Statistical Computing
Copyright (C) 2019 BeDataDriven
Falling back to pure JVM BLAS libraries.
> a <- capture.output(print("jabba"))
[1] "jabba"
> print(a)
character(0)
> 
  1. [1] "jabba" is unexpectedly being printed on the first line
    and
  2. character(0) being printed after the second line (the print command)

I.e. capture.output() is not able to capture the output.

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

No branches or pull requests

1 participant