Entering edit mode
I am trying to install codelink package from bioconductor using
source("http://bioconductor.org/biocLite.R") biocLite("codelink")
It throws me some warnings
Warning messages: 1: In install.packages(pkgs = pkgs, lib = lib, repos = repos, ...) : installation of package ‘XML’ had non-zero exit status 2: In install.packages(pkgs = pkgs, lib = lib, repos = repos, ...) : installation of package ‘annotate’ had non-zero exit status 3: In install.packages(pkgs = pkgs, lib = lib, repos = repos, ...) : installation of package ‘codelink’ had non-zero exit status when i try library(codelink), it gives an error: Error in library(codelink) : there is no package called ‘codelink’
Hi Hussain, thats weird... what is the output of sessionInfo()? Incidentally, Bioc 3.1 has just been released. There might have been some reason why the package was not available before. But it certainly is part of the release. I would try to install again then if you still have problems come back here with the output of sessionInfo() to give us some more information.
The problem is that codelink has dependencies, one of which is the XML package. The XML package itself has system dependencies, in particular on linux the existence of the libxml2-dev (and I think libcurl-openssl-dev) libraries. So swim upstream to the original problem, fix it, and work down stream again. Likely this is apparent from a more careful scrutiny of the output from the attempted installation.
Don't be afraid to provide complete output. You've trimmed the part that tells us what operating system you're using!
Sorry to miss some part. check updated.
Yes, you need to install the system dependency libxml2-dev, from the command line (not inside R)
sudo apt-get install libxml2-dev
@ Dear Martin. Thanks a lot for your valuable comments. Its was waiting for dependency libxml2-dev as per you.
Oh, my bad. I wrongly understood in your question that biocLite() was suggesting codelink could not be found. But indeed was the lack of xml devel libraries the reason behind the error. Glad to hear your problem is solved.
:) . I am also happy to see it working. let me ask you , why all the dependencies are not installing automatically with codelink. I wish it should go like this.
And i played with your codelink package last night. The thing about targets.txt was not clear to me. I got expression and SNR but not probe id.