I have the following script
#!/usr/bin/Rscript print (\"shebang works\")
in a file called shebang.r. When I run it from command line using Rsc
Make the file executable.
chmod 755 shebang.r