title: Rscript in Crontab not running in Ubuntu Server 18.04
body: <p>The following is my very simple Rscript called <code>test.R</code> that I want to run every minute</p>
  <p><code> print(&quot;Hello, World!&quot;)</code></p>
  <p>and I would like to automate this script in the hopes that I can do the same for future scripts. I use the <code>crontab -e</code> call and add the following:</p>
  <pre><code>* * * * * Rscript home/&lt;username&gt;/test.R
  </code></pre>
  <p>which fails to produce any results.</p>
  <p>Per the examples of <a href="https://stackoverflow.com/questions/33098235/cron-job-to-execute-r-script-not-working">cron job to execute r script not working</a> and <a href="https://stackoverflow.com/questions/38778732/schedule-a-rscript-crontab-everyminute">Schedule a Rscript crontab everyminute</a>, I have made the following variations in the crontab code</p>
  <pre><code>* * * * * Rscript &quot;home/&lt;username&gt;/test.R&quot;
  * * * * * usr/bin/Rscript home/&lt;username&gt;/test.R
  * * * * * usr/bin/Rscript &quot;home/&lt;username&gt;/test.R&quot;
  * * * * * cd home/&lt;username&gt;/ &amp;&amp; Rscript test.R
  * * * * * cd home/&lt;username&gt;/ &amp;&amp; usr/bin/Rscript test.R
  </code></pre>
  <p>all of which do nothing. I have also created a script called <code>myScript.sh</code> which contains <code>Rscript /home/&lt;username&gt;/test.R</code>, and tried assigning the task <code>* * * * * home/&lt;username&gt;/myScript.sh</code> all to no avail.</p>
  <p>I have made sure to run <code>chmod +x</code> to make my files executable beforehand, and simply typing <code>Rscript test.R</code> produces my desired results.</p>
  <p>What else can I do to make this work? Is there some issue with me running Ubuntu Server 18.04 vs running the desktop version?</p>
  <h2>Update</h2>
  <p>I have run all the above variations, with a <code>/</code> before <code>home</code> and <code>usr</code>. I have also switched to trying <code>~/test.R</code> but I still get no results.</p>