I have a friend who asked me to implement something for him. Let's make a simple example: I have four values I enter: Value1 up to Value4. With these values my R program does fancy calculations and gives a nice result.
No let's say I do not want to bother my friend with (from his point of view) complicated r script and entering the values there. So I want to program a simple input gui and then make it an executable file. Now I have two questions:
How can I create such an input gui?
How can I get an executable file out of this?
You're only supposed to ask one question per post here, and you've asked two.
Here's the answers.
You can create a simple input GUI with the tcltk package. A slightly more interesting one with the rpanel package. A prettier one with the RGtk2 package.
No. Its hard to get an executable file out of anything that includes a GUI, an interpreted language, and a library of functions written in that language. The most reliable way is to zip the entire R installation and your program code into a zipped up, self-extracting executable that unzips itself and runs. Every time you run it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With