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
Post a Comment