genomicsclass / labs

Rmd source files for the HarvardX series PH525x
http://genomicsclass.github.io/book
MIT License
2.01k stars 1.95k forks source link

R.4.3.3 package installation #69

Open PedramAsef opened 6 years ago

PedramAsef commented 6 years ago

Greetings,

Is there any problem to install the package for R Ver. 4.3.3? I have problem to do this!

My R Ver. 4.3.3, and Rstudio Ver. is 1.1.419

Regards,

PedramAsef commented 6 years ago

In both R 4.3.3 and 3.2.2, I could install the package ( GSE5859Subset) and I checked that box in front of it in packages (in Rstudio) .But, when I would call for example tissueGeneExpression, I see the followings (maybe I am doing the procedure not correctly to call data):

library("GSE5859Subset", lib.loc="~/R/win-library/3.2") library(tissuesGeneExpression) Error in library(tissuesGeneExpression) : there is no package called ‘tissuesGeneExpression’ data(tissuesGeneExpression) Warning message: In data(tissuesGeneExpression) : data set ‘tissuesGeneExpression’ not found table(tissue) Error in table(tissue) : object 'tissue' not found library(tissuesGeneExpression) Error in library(tissuesGeneExpression) : there is no package called ‘tissuesGeneExpression’ data(tissuesGeneExpression) Warning message: In data(tissuesGeneExpression) : data set ‘tissuesGeneExpression’ not found dim(e) Error: object 'e' not found

Please guide me! Regards

vjcitn commented 6 years ago

library(BiocInstaller) biocLite("genomicsclass/tissuesGeneExpression") library(tissuesGeneExpression) data(tissuesGeneExpression) dim(e) # will now work

On Thu, Feb 1, 2018 at 7:14 PM, DrPedi notifications@github.com wrote:

In both R 4.3.3 and 3.2.2, I could install the package ( GSE5859Subset) and I checked that box in front of it in packages (in Rstudio) .But, when I would call for example tissueGeneExpression, I see the followings (maybe I am doing the procedure not correctly to call data):

library("GSE5859Subset", lib.loc="~/R/win-library/3.2") library(tissuesGeneExpression) Error in library(tissuesGeneExpression) : there is no package called ‘tissuesGeneExpression’ data(tissuesGeneExpression) Warning message: In data(tissuesGeneExpression) : data set ‘tissuesGeneExpression’ not found table(tissue) Error in table(tissue) : object 'tissue' not found library(tissuesGeneExpression) Error in library(tissuesGeneExpression) : there is no package called ‘tissuesGeneExpression’ data(tissuesGeneExpression) Warning message: In data(tissuesGeneExpression) : data set ‘tissuesGeneExpression’ not found dim(e) Error: object 'e' not found

Please guide me! Regards

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/genomicsclass/labs/issues/69#issuecomment-362444886, or mute the thread https://github.com/notifications/unsubscribe-auth/AEaOwu1wXJEbwUvPGWsysoIPNO0G4qxQks5tQlNqgaJpZM4R2agb .

PedramAsef commented 6 years ago

I appreciate your swift reply! I have copy/ paste your code in my R console, but still I can see the following errors:

--- Please select a CRAN mirror for use in this session --- Warning: package ‘devtools’ is in use and will not be installed

library(BiocInstaller) Error in library(BiocInstaller) : there is no package called ‘BiocInstaller’ biocLite("genomicsclass/tissuesGeneExpression") Error in biocLite("genomicsclass/tissuesGeneExpression") : could not find function "biocLite" library(tissuesGeneExpression) Error in library(tissuesGeneExpression) : there is no package called ‘tissuesGeneExpression’ data(tissuesGeneExpression) Warning message: In data(tissuesGeneExpression) : data set ‘tissuesGeneExpression’ not found dim(e) Error: object 'e' not found

How can I go forward step by step to make sure that I am doing the procedure rightly?

Regards,

vjcitn commented 6 years ago

Introductory material of the course discusses how to install R packages.

in this case you can use

source("http://www.bioconductor.org/biocLite.R")

that will install BiocInstaller

library(BiocInstaller) # will now succeed

On Thu, Feb 1, 2018 at 11:51 PM, DrPedi notifications@github.com wrote:

I appreciate your swift reply! I have copy/ paste your code in my R console, but still I can see the following errors:

--- Please select a CRAN mirror for use in this session --- Warning: package ‘devtools’ is in use and will not be installed

library(BiocInstaller) Error in library(BiocInstaller) : there is no package called ‘BiocInstaller’ biocLite("genomicsclass/tissuesGeneExpression") Error in biocLite("genomicsclass/tissuesGeneExpression") : could not find function "biocLite" library(tissuesGeneExpression) Error in library(tissuesGeneExpression) : there is no package called ‘tissuesGeneExpression’ data(tissuesGeneExpression) Warning message: In data(tissuesGeneExpression) : data set ‘tissuesGeneExpression’ not found dim(e) Error: object 'e' not found

How can I go forward step by step to make sure that I am doing the procedure rightly?

Regards,

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/genomicsclass/labs/issues/69#issuecomment-362485933, or mute the thread https://github.com/notifications/unsubscribe-auth/AEaOwmeygI7bcnE2JsH66mH2Ng4Rym4kks5tQpRNgaJpZM4R2agb .

PedramAsef commented 6 years ago

It works now, my sincere appreciation.

Have a good one,

Yash507 commented 4 years ago

library(devtools) install_github("genomicsclassGSE5859Subset") library(GSE5859Subset) data(GSE5859Subset)