Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 201894

shell script with read input from R

$
0
0

I have a shell script

#!/bin/sh
read -p 'My_date : ' mydate
echo $mydate

and I want to run it from R, I've tried system(myshell_script.sh) but it doesn't seem to work, my Rstudio crashes.


Viewing all articles
Browse latest Browse all 201894

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>