nolanlab / citrus

Citrus Development Code
GNU General Public License v3.0
31 stars 20 forks source link

How to install Citrus on a Mac or PC #115

Closed MorganSimoneS closed 6 years ago

MorganSimoneS commented 6 years ago

Has anyone been experiencing issues with installing Citrus on a Mac or PC? I have tried both and used the following code chunk. However, R Studio keeps saying there is an error. Any advice would be helpful I have also installed all the necessary package such as X code on Mac and the R tools package for PC

install.packages("glmnet") install.packages("pamr") install.packages("ggplot2") install.packages("survival") source("http://bioconductor.org/biocLite.R") biocLite("flowCore") biocLite("impute") install.packages("samr")

rbruggner commented 6 years ago

Can you post error messages please?

On Feb 14, 2018, at 11:20 AM, MorganSimoneS notifications@github.com wrote:

Has anyone been experiencing issues with installing Citrus on a Mac or PC? I have tried both and used the following code chunk. However, R Studio keeps saying there is an error. Any advice would be helpful I have also installed all the necessary package such as X code on Mac and the R tools package for PC

install.packages("glmnet") install.packages("pamr") install.packages("ggplot2") install.packages("survival") source("http://bioconductor.org/biocLite.R http://bioconductor.org/biocLite.R") biocLite("flowCore") biocLite("impute") install.packages("samr")

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/nolanlab/citrus/issues/115, or mute the thread https://github.com/notifications/unsubscribe-auth/ABFhGv7LPV-sv9g_Ygxbo2oSnZWVzi4sks5tUzHwgaJpZM4SF1cp.

MorganSimoneS commented 6 years ago
screen shot 2018-02-23 at 2 11 54 pm

This is the error message I am getting which is strange because in the past ggplot2 normally works fine

rbruggner commented 6 years ago

According to the messages that you're posting, it doesn't seem that the Citrus package is installed. Have you installed it?

SamGG commented 6 years ago

It seems you are trying to install ggplot2 although it is already installed, as shown on the bottom right panel. To start a citrus session once installed, you only need the two commands of the last chunk. If you really want to install citrus again, the best is to start from the beginning. Close ALL the RStudio sessions and R terminals if any. Then try again. It looks quite odd to me that you put those commands in a Markdown document because there is no interest in formatting their output, but it should run. HTH.

MorganSimoneS commented 6 years ago

No matter what I try I can't install Citrus today I tried on a PC and got the following message screenshot 1

bc2zb commented 6 years ago

Try using

devtools::install_github instead

When R indicates it cannot find a function, it usually means you haven't loaded the library. Using the [library]::[function] tells R explicitly which library and function to use. This is very useful if you are using libraries that have identically named functions. FlowCore::filter and dplyr::filter being two obnoxious examples I run into constantly.

MorganSimoneS commented 6 years ago

Awesome thank you I will try that now and let you know if it works

MorganSimoneS commented 6 years ago

@bc2zb Just tried it and R still is saying there is no package called devtools

bc2zb commented 6 years ago

Try reinstalling devtools then.

MorganSimoneS commented 6 years ago

I just reinstalled and it worked, I am attempting to call Citrus and use it

MorganSimoneS commented 6 years ago

Never mind screenshot 2 I am still screwed

bc2zb commented 6 years ago
library(devtools)
install_github("nolanlab/Rcluserpp")
install_github("nolanlab/citrus")

If all of that goes through with no errors (look at the terminal output), then try library(citrus).

rbruggner commented 6 years ago

@MorganSimoneS the issues you're posting are general issues related to using R, not issues related to Citrus. Do you have a co-worker who is familiar with R in general (not necessarily with citrus) who can help you with the installation issues?

SamGG commented 6 years ago

I think you are trying to install all the libraries at once by running the whole chunk. If so, I would advise you to run one line at a time, and to check each library is correctly installed before issuing the next library installation: just call 'library()' to check that no error occurs. In the log on your screenshot, it looks like the packages are download and ready to install, but it seems that an error occurs and blocks the end of the installation. That's why I recommend a slow line by line installation. Don't hesitate to close all R or RStudio sessions and restart where the installation fails. Hope this help.

MorganSimoneS commented 6 years ago

I have been successful this go around however apparently the version of R I am using is not compatible with Citrus. I also ran each code line by line and uninstalled and reinstalled again to reach this point. Which version is correct? r issues

SamGG commented 6 years ago

Your error is quite obvious: the only way to install citrus is via install.github(), not by install.packages() nor bioclite(). Please, read carefully the instructions, understand every single line of code, and if there is an error, breath and try to understand what's going on. I will recommend you to ask help around you.