command - Running R script from Shell using CygWin: error "Rscript not found" -
this first time trying run r file cygwin terminal. have file named linreg.r , in same directory file in cygwin terminal. there shell script in same directory take in input linreg.r , data.txt (located @ other place).
when running bash appropriate inputs, again , again giving me same error:
$ ./build_model_from_directory.sh linreg.r /workdir/workdir/prod_data_v.txt lm_try ./build_model_from_directory.sh: line 27: type: rscript: not found rscript needed linreg.r. exiting
when put this:
$./build_model_from_directory.sh linreg.rscript /workdir/workdir/prod_data_v.txt lm_try script assumes linreg.rscript in same directory
this first line of linreg.r
#!/usr/bin/env rscript
i have tried setting path path=$path:c:\\programfiles\\r\\r-3.0.1\\bin
of no use. has changed path still script not running.
any highly appreciated.
it might worth time add .bashrc file:
echo 'path=$path:/cygdrive/c/program\ files/r/r-3.2.3/bin' >> .bashrc
Comments
Post a Comment