Is it possible to compile R into something like an executable or similar? I know R is an interpreted language but still. Any workarounds?
I've two objectives here & a solution catering to any one or both is OK:
- To allow the code to be run on a machine that may not have R installed
- To hide the actual logic / algorithms being used from the person using it.
Re. #2 I'm not assuming someone who'd take the pains to decompile, reverse engineer, read assembly etc. But just to prevent a cursory user from just stealing the R code verbatim.
The exact platform the program must run on is fully known in advance. So platform independence is not of concern here.
Is this too much to ask for? Must I prototype in R and then switch to an actual compiled language?