I run the R program in a linux cluster because it is very demanding on my processor. My program is designed to output several (about 15) charts in PDF format to the folder from which the program collects its data.
I want my program to run in the background and continue to work when I exit the cluster.
First, I tried this:
cd /Users/The/Folder/With/My/RScript
However, this did not work because it added the output to a file named nohup.out and did not output any of the PDF files that I needed.
Next I tried this:
cd /Users/The/Folder/With/My/RScript
This gave me the desired result, but did not run the program in the background (and will stop when I exit the cluster).
Can someone enlighten me on how I can get the output of my second block of code while the program is running in the background and make it continue to work even after leaving the Linux cluster (for example, the first block of code)?
Many thanks!
Mikez source share