user1177819
user1177819

Reputation: 113

Dll of R code or .R file

I am having code1.R code2.R and code3.R. I would like to pass these functions to somebody as DLL such that he can execute these codes without being able to look inside the code.

How can I make DLL of .R files?

I tried various means but unable to do so far.

Upvotes: 0

Views: 1056

Answers (1)

Romain Francois
Romain Francois

Reputation: 17642

R is interpreted, not compiled. There might be ways to obfuscate your code, but R needs to be able to parse it if you want it to evaluate it.

You could implement your logic in a compiled language (e.g. C or C++), embed that code in a package and then give a binary version of the package to your client.

You could also set up some R server and only give access certain entry point to your client.

But there's no way to "compile" R code.

Upvotes: 1

Related Questions