I would like to install Bioconductor R packages. However I get error that the variables are not found... I really have no idea how RLink so I do appreciate your assistance.
Needs["RLink`"]
InstallR[]
REvaluate["source(\"http://bioconductor.org/biocLite.R\"); biocLite(\" DESeq \")"]
I have already installed these packages via R on my computer. I thought it may help to install them via RLink incase Mathematica puts them somewhere special. Trying to load the packages also does not work:
It works in R
R Version in RLink is not the most up-to-date but it should not be an issue...
[![enter image description here][4]][4]



install.packages. But installing packages in this way works via RLink only on Windows. On other platforms, you need to use the R's command line for that - then you can work with installed packages via RLink. What OS are you on? – Leonid Shifrin Oct 14 '16 at 14:34library(DESeq)in R console for your R distribution and see what happens. – Leonid Shifrin Oct 14 '16 at 14:54REvaluate["R.Version()"], to make sure you use the one you want (rather than, for example, the default one that comes with RLink). You need to point to specific R via"RHomeLocation"option inInstallR, if you use the external R distro. – Leonid Shifrin Oct 14 '16 at 14:56biocLite(), and thenbiocLite("DESeq2"). They will update the version of DESeq2 that you installed, as well as dependencies. After that, it worked with RLink, at least to the point that relevant library gets loaded withREvaluate["library(DESeq2)"]. Here is the relevant link – Leonid Shifrin Oct 14 '16 at 19:24SetEnvironment[ "DYLD_LIBRARY_PATH" -> "/Library/Frameworks/R.framework/Resources/lib"]and thenInstallR["RHomeLocation" -> "/Library/Frameworks/R.framework/Resources", "RVersion" -> 3]. The paths on your machine may differ, although I believe these are the default ones. You can test then withREvaluate["R.Version()"]. – Leonid Shifrin Oct 15 '16 at 18:29RHomeLocationas on the documentation it is only for windows? – SumNeuron Oct 16 '16 at 11:10"RHomeLocation"works on all systems but on Linux and Mac requires a bit of extra work (on Linux one may need to install extra library, which was another obstacle to full automation) on the side of the user. Which is what the setup guide kindly written by Szabolcs, that I linked to, describes how to do. – Leonid Shifrin Oct 16 '16 at 13:17