How to give admininstrative rights while running R script from terminal in Linux?

I think it's going to be hard for anybody to help further without some more information:

  • Can you post the text of the error message you got when you tried to run your script?
  • And, if possible, the contents of the script that you are trying to run (formatted as code, please :grin:)?