I was trying to invoke an executable from within R code using the system command. If I use command line in a terminal to invoke R, and then execute system("mothur")
. However, if from within an R script (on RStudio) I execute the same command, I get: sh: mothur: command not found
.
In both cases, the current working directory is the same.
Do I need to invoke the command in a different manner?
thanks!