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] "jabba" is unexpectedly being printed on the first line
and
character(0) being printed after the second line (the print command)
I.e. capture.output() is not able to capture the output.
In GNU-R 3.5 the following code illustrates a simple use of capture.output:
But in Renjin the same code results in
[1] "jabba"
is unexpectedly being printed on the first line andcharacter(0)
being printed after the second line (the print command)I.e. capture.output() is not able to capture the output.