sbatch failed: the script was read with mistakes
I’ve created a script which I developed running it and testing it chunk by chunk in R. I then created a .sh file to submit it to HPC.
The script runs alright and output all files needed as results (ie .txt and plots). However, when submitting it via sbatch: