Quantcast
Channel: R.NET
Viewing all articles
Browse latest Browse all 1634

New Post: Missing tab characters in RDotNet stdout output

$
0
0
In RGui on Windows 7, if I create the following vector and print it...
> ar = c(1, 12, 123, 1234, 12345, 123456, 1234567, 12345678)
> print(ar)
[1]        1       12      123     1234    12345   123456  1234567 12345678
Now the same thing but with RDotNet on Windows 7...

If I call _engine.Evaluate("ar = c(1, 12, 123, 1234, 12345, 123456, 1234567, 12345678)"); and then separately, _engine.Evaluate("print(ar)");, I get the following disturbing output on stdout (the console):
[1]112123123412345123456123456712345678
Now, I do want the output, I just want it to contain the tab characters it's supposed to have to separate the elements of the vector. Without the tabs, the output is useless. (BTW, this is a trivial example of what I actually need to do; please don't tell me to use numeric data types & handle my results programmatically, as that defeats the purpose of what I'm doing.)

Any ideas? Thanks in advance.

Viewing all articles
Browse latest Browse all 1634

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>