This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Unable to locate R packages on Bio-linux

Dear all,

This is my first trying to install R packages on Bio-linux.

I have tried "install.packages(packagename)", "apt-get install packagename" and other methods but I could not install the packages.

When I tried "apt-get install packagename", I got the error message:"unable to locate package".

Can any one guide me how to solve this problem?

Thank you in advance

Nazanin

r packages bio-linux

Not really a bioinformatics question. Have you tired

install.packages("packagename")

(note the quotes) ?

Yes, I tested all this commands, but non did work

Just so a basic assumption is clear, you're running the source() from within R, right? apt-get is run from the shell, the function calls above happen in R.

Which package in particular? R packages may be available at a number of sources, and install method will be different in each case.

In Debian and Ubuntu, CRAN and BioConductor packages are named (when available at the distro repository) r-cran-packagename or r-bioc-packagename, so you would need:

apt-get install r-cran-packagename

Hi, When I write apt-get install r-cran-gcrma or apt-get install r-bioc-packagename, I get this error message: unexpected symbol in apt-get install

Hello nazaninhoseinkhan!

We believe that this post does not fit the main topic of this site.

This is R and linux. Please search StackOverflow

For this reason we have closed your question. This allows us to keep the site focused on the topics that the community can help with.

If you disagree please tell us why in a reply below, we'll be happy to talk about it.

Cheers!

0 answers

No answers yet.

Log in to answer this question.