"module load gcc/7.2.0; module load java/1.8.0_131; module load R/@{version}; Rscript"</span><span class="op">)</span></span>
<span><span class="op">}</span></span></code></pre></div>
<p>The module loading for <code>gcc/7.2.0</code> and <code>java/1.8.0_131</code> ensures that R packages depending on specific C/Java libraries can be successfully loaded. So, if <code>R_version</code> is set to <code>4.0.0</code>, the <code>Rscript</code> call would be</p>
<pre><code>module load gcc/7.2.0; module load java/1.