How to build an executable / installer from a routine written in R?

5

I have several routines written in R, simple tools that I would like to share with my colleagues. However, some of them have no programming knowledge. So I want to make it easier to use these tools.

For this I thought about creating an executable / installer for windows, containing these tools, but I have no idea how to do it or where to start.

Considering the Triangle Scalene routine shown below, which tests whether or not the triangle is scalene.

### Triangulo Escaleno
### Para um triangulo ser escaleno ele precisa ter os 3 lados diferentes

##Entrada de Dados
#Lados do Triangulo
a<-5
b<-3
c<-3

#Estrutura de Condição
if(a!=b & b!=c & c!=a){
   cat("É um triangulo escaleno")
}else{
   cat("Não é um triangulo escaleno")
}

How can I create or build an executable / installer of this routine?

    
asked by anonymous 09.11.2015 / 19:43

1 answer

4

This is currently not possible. That is, it is not possible to create a standalone executable where the person does not need to have R installed on his machine.

However, there are some alternatives, such as those cited in the comments. A solution in windows, for example, is to create a bat that runs the R script. Another solution would be to make an interface Shiny that the person can run on the computer itself (but need to have R installed) or you put the% application Shiny on a server and the person only accesses the client side.

    
20.12.2015 / 20:33