shell - How to implement this solution to make R scripts interactive? -


i have found answer problem had discussed here: how dialog/message box working in executable r file

the answer here: https://thesquareplanet.com/blog/interactive-r-scripts/

specifically bit:

we can use provide interactive r script executor in /usr/local/bin/rint: #!/bin/sh f=$1; shift; env "r_profile_user=$f" "args=$@" r --no-save -q 

my problem know nothing command prompt or batch files. line mean, , paste command prompt once , add "#!/usr/local/bin/rint" top of executable r script?

this line not windows cmd.exe shell. unix/linux shell.

we can use provide interactive r script executor in /usr/local/bin/rint:

#!/bin/sh f=$1; shift; env "r_profile_user=$f" "args=$@" r --no-save -q 

Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -