System call within R shiny

I am trying to use system command to run an external program on the uploaded file within the R shiny script. But it doesn't seem to work. It throws me error that its impossible to read the file.