{"id":404,"date":"2018-02-02T13:03:02","date_gmt":"2018-02-02T13:03:02","guid":{"rendered":"http:\/\/ri.itservices.manchester.ac.uk\/htccondor\/?page_id=404"},"modified":"2025-03-05T09:54:21","modified_gmt":"2025-03-05T09:54:21","slug":"r","status":"publish","type":"page","link":"https:\/\/ri.itservices.manchester.ac.uk\/htccondor\/software\/r\/","title":{"rendered":"R"},"content":{"rendered":"<div class=\"entrytext\">\n<h2><span id=\"Overview\">Overview<\/span><\/h2>\n<p>R is a language and environment for statistical computing and graphics developed by the <a href=\"http:\/\/www.r-project.org\/\">R community<\/a>. R provides a wide variety of statistical (linear and nonlinear modeling, classical statistical tests, time-series analysis, classification, clustering, \u2026) and graphical techniques, and is highly extensible.<\/p>\n<h2>Restrictions on use\/License information<\/h2>\n<p>R is released under the <a href=\"https:\/\/www.gnu.org\/licenses\/old-licenses\/gpl-2.0.en.html\">GNU GPL v2<\/a>.<\/p>\n<p>There is no restriction on the number of simultaneously running programs on HTCondor.<\/p>\n<h2><span id=\"Versions_installed\">Versions installed<\/span><\/h2>\n<table align=\"center\" border=\"1\">\n<tbody>\n<tr>\n<th align=\"center\">R version<\/th>\n<th align=\"center\">HTCondor ClassAd<\/th>\n<\/tr>\n<tr>\n<td align=\"center\">3.6.0<\/td>\n<td align=\"center\">HAS_R_3_6_0<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">4.1.2<\/td>\n<td align=\"center\">HAS_R_4_1_2<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">4.3.3<\/td>\n<td align=\"center\">HAS_R_4_3_3<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2><span id=\"Set_up_procedure_on_submit_node\">Set up procedure on submit node<\/span><\/h2>\n<p>R can be enabled using the command:<\/p>\n<pre>\r\nmodule load R\/&lt;R version&gt;\r\n<\/pre>\n<p>and then run using the command <tt>R<\/tt>.<\/p>\n<h2><span id=\"Running_the_application\">Running the application<\/span><\/h2>\n<p>The following lines are the contents of a simple generic HTCondor submit text file for submitting an R job <strong>that does not require the installation of any additional R packages<\/strong> to HTCondor:<\/p>\n<pre>\r\nUniverse = vanilla\r\n\r\nRequirements = (Target.Opsys == \"LINUX\" &amp;&amp; Target.Arch == \"X86_64\" &amp;&amp; &lt;HTCondor ClassAd&gt;=?=True)\r\nRequest_Memory = 1000\r\n\r\nLog = R.log\r\nOutput = R.out\r\nError = R.error\r\nNotification = Error\r\n\r\nShould_Transfer_Files = Yes\r\nWhen_To_Transfer_Output = On_Exit\r\n\r\nExecutable = \/opt\/R-&lt;R version&gt;\/bin\/Rscript\r\nTransfer_Executable = False\r\nArguments = --no-save &lt;script&gt;.R &lt;input arguments&gt;\r\nTransfer_Input_Files = &lt;script&gt;.R\r\n\r\nQueue\r\n<\/pre>\n<p>If your submit file is called <tt>submit.txt<\/tt> then your job can be submitted to HTCondor using the command <tt>condor_submit submit.txt<\/tt>.<\/p>\n<h2>Sample R HTCondor jobs<\/h2>\n<ol>\n<li><a href=\"\/htccondor\/software\/R_calculate_pi\/\">R code for calculating Pi using <em>n<\/em> terms of the Gregory series<\/a>.<\/li>\n<li><a href=\"\/htccondor\/software\/R_list_packages\/\">R code for listing available R packages<\/a>.<\/li>\n<li><a href=\"\/htccondor\/software\/R_install_packages\/\">Sample code that demonstrates how to use additional R packages<\/a>.<\/li>\n<\/ol>\n<p><\/body><\/html><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Overview R is a language and environment for statistical computing and graphics developed by the R community. R provides a wide variety of statistical (linear and nonlinear modeling, classical statistical tests, time-series analysis, classification, clustering, \u2026) and graphical techniques, and is highly extensible. Restrictions on use\/License information R is released under the GNU GPL v2. There is no restriction on the number of simultaneously running programs on HTCondor. Versions installed R version HTCondor ClassAd 3.6.0.. <a href=\"https:\/\/ri.itservices.manchester.ac.uk\/htccondor\/software\/r\/\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"parent":17,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-404","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/htccondor\/wp-json\/wp\/v2\/pages\/404","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/htccondor\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/htccondor\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/ri.itservices.manchester.ac.uk\/htccondor\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/ri.itservices.manchester.ac.uk\/htccondor\/wp-json\/wp\/v2\/comments?post=404"}],"version-history":[{"count":20,"href":"https:\/\/ri.itservices.manchester.ac.uk\/htccondor\/wp-json\/wp\/v2\/pages\/404\/revisions"}],"predecessor-version":[{"id":1251,"href":"https:\/\/ri.itservices.manchester.ac.uk\/htccondor\/wp-json\/wp\/v2\/pages\/404\/revisions\/1251"}],"up":[{"embeddable":true,"href":"https:\/\/ri.itservices.manchester.ac.uk\/htccondor\/wp-json\/wp\/v2\/pages\/17"}],"wp:attachment":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/htccondor\/wp-json\/wp\/v2\/media?parent=404"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}