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

New Post: alternative to str() in source() to get full variable's output

$
0
0
Hi all,

I'm able to start REngine in a .Net 4.5 Console Application in C#. Then I let a script running using source(). This works fine and I get some output on my console, e.g. when a package is loaded but I'd like to get some more output.

In the examples I only found str() to get some output on my console (not the R console and also not the R Studio console but the application console coming from Visual Studio). Using str() only gives me a short overview which is great at times but right now I'd like to see every entry of my variable. I want to get the full output of a variable, e.g. in R I would type the variable's name. However when I type just the variable's name in my R-file and source() this file from C# I don't get any output on my console application.

I can get the variables output with REnginge by
engine.Evaluate("with(" + env + ", variableName)");
Is there any simple way I get the variable's output from a R file that's being source()ed? I read about writing your own console (https://rdotnet.codeplex.com/discussions/261917) but I think there might be an other way to just to display a variable, right?

Thanks
Toby

Viewing all articles
Browse latest Browse all 1634

Trending Articles



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