Launching executable file in R with Linux


I'm trying to execute an R script on Linux using the command-line:
Rscript RUN_TETIS_linux.R

This file contains a command to run an executable.

I could run the Rscript without problem using Windows, with the command:

Using Linux, the executable name is "Linux", without extension, and the command system2("Tetis") into the script doesn't work.

Could anybody help me?

> system("echo 'Hello World!'")
Hello World!
> # create script, as follows
> # #! /usr/bin/sh
> # echo "Hello, World!"
> # now save it
> # then make executable with
> # chmod +x
> # come back to R
> system("/home/roc/projects/demo/")
Hello, World!

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.