I'm trying to run a script I made in Rstudio on a unix server (command entered bellow). When I run the command, it returns the following error message:
sbatch -N 1 --mem=10000 -p all ./myscript.R
sbatch: error: Batch script contains DOS line breaks (\r\n) instead of expected UNIX line breaks (\n)
How can I resolve this error? I have already had to enter "#!/usr/bin/env Rscript #SBATCH --get-user-env" to get the ssh server to realize it is an R script.
Thank you!