title: Transforming an R Script from DOS line endings to Unix
body: <p>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:</p>
  
  <pre><code>sbatch -N 1 --mem=10000 -p all ./myscript.R
  </code></pre>
  
  <blockquote>
    <p>sbatch: error: Batch script contains DOS line breaks (\r\n) instead of expected UNIX line breaks (\n)</p>
  </blockquote>
  
  <p>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.</p>
  
  <p>Thank you!</p>