<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.csi.cuny.edu/cunyhpc/index.php?action=history&amp;feed=atom&amp;title=R</id>
	<title>R - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.csi.cuny.edu/cunyhpc/index.php?action=history&amp;feed=atom&amp;title=R"/>
	<link rel="alternate" type="text/html" href="https://wiki.csi.cuny.edu/cunyhpc/index.php?title=R&amp;action=history"/>
	<updated>2026-05-18T09:07:52Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.38.4</generator>
	<entry>
		<id>https://wiki.csi.cuny.edu/cunyhpc/index.php?title=R&amp;diff=69&amp;oldid=prev</id>
		<title>James: Created page with &quot;In order to use R on Penzias, Appel, Andy or Karle please load the corresponding module:  &lt;pre&gt;    module load r &lt;/pre&gt;   Complete R documentation may be found at http://www.r-project.org/  ====Running R on Karle ==== The following is the &quot;Hello World&quot; program written in R: &lt;pre&gt; # Hello World example a &lt;- c(&quot;Hello, world!&quot;) print(a) &lt;/pre&gt;  To run R job on Karle server, save your R script into the file (for example &quot;hello.R&quot;) and use the following command to launch it:...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.csi.cuny.edu/cunyhpc/index.php?title=R&amp;diff=69&amp;oldid=prev"/>
		<updated>2022-10-20T19:00:07Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;In order to use R on Penzias, Appel, Andy or Karle please load the corresponding module:  &amp;lt;pre&amp;gt;    module load r &amp;lt;/pre&amp;gt;   Complete R documentation may be found at http://www.r-project.org/  ====Running R on Karle ==== The following is the &amp;quot;Hello World&amp;quot; program written in R: &amp;lt;pre&amp;gt; # Hello World example a &amp;lt;- c(&amp;quot;Hello, world!&amp;quot;) print(a) &amp;lt;/pre&amp;gt;  To run R job on Karle server, save your R script into the file (for example &amp;quot;hello.R&amp;quot;) and use the following command to launch it:...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;In order to use R on Penzias, Appel, Andy or Karle please load the corresponding module:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
   module load r&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
Complete R documentation may be found at http://www.r-project.org/&lt;br /&gt;
&lt;br /&gt;
====Running R on Karle ====&lt;br /&gt;
The following is the &amp;quot;Hello World&amp;quot; program written in R:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# Hello World example&lt;br /&gt;
a &amp;lt;- c(&amp;quot;Hello, world!&amp;quot;)&lt;br /&gt;
print(a)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To run R job on Karle server, save your R script into the file (for example &amp;quot;hello.R&amp;quot;) and use the following command to launch it:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
R --vanilla --slave &amp;lt; helloworld.R&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Note that you need to load R module first (see [[Applications_Environment#General_Notes_2| previous section]]).&lt;br /&gt;
&lt;br /&gt;
====Running R on cluster machines ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;toccolours mw-collapsible mw-collapsed&amp;quot;&amp;gt;&lt;br /&gt;
In order to run R job on any of HPCC&amp;#039;s cluster machines (Penzias, Appel or Andy) users should use SLURM manager. Submitting serial R job to the SLURM queue is exactly the same as [[#Submitting_Serial_.28Scalar.29_Jobs | submitting any other serial job]]. &lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;&lt;br /&gt;
More information about our installation can be found here [[R on Cluster Machines]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====R packages====&lt;br /&gt;
In order to install R package start R and run the following command:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
install.packages(&amp;quot;package.name&amp;quot;)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You will be prompted to install package into home directory. Agree and pick a &amp;#039;&amp;#039;&amp;#039;non-https&amp;#039;&amp;#039;&amp;#039; mirror from the list. Then, pick a mirror from new list. After package is installed use it starting with &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
library(package.name)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>James</name></author>
	</entry>
</feed>