Bureaucrats, cc_docs_admin, cc_staff, rsnt_translations
2,837
edits
No edit summary |
|||
Line 134: | Line 134: | ||
==Using system calls in R== | ==Using system calls in R== | ||
Using the R command <tt>system()</tt> you can execute commands in the ambient environment from inside R. On Compute Canada clusters this can lead to problems because R will given an incorrect value to the environment variable <tt>LD_LIBRARY_PATH</tt>. You can avoid this problem by using the syntax <tt>system(" | Using the R command <tt>system()</tt> you can execute commands in the ambient environment from inside R. On Compute Canada clusters this can lead to problems because R will given an incorrect value to the environment variable <tt>LD_LIBRARY_PATH</tt>. You can avoid this problem by using the syntax <tt>system("LD_LIBRARY_PATH=$RSNT_LD_LIBRARY_PATH <my system call>")</tt> in your R system calls. | ||
==Exploiting parallelism in R== <!--T:46--> | ==Exploiting parallelism in R== <!--T:46--> |