I have a quick question regarding qiime2r. I tried to install it on R 3.1 and it said that it is not available for that version, hence, I updated R, but I still get the same message.
install.packages("QIIME2R") Warning in install.packages : _ package ‘QIIME2R’ is not available (for R version 3.5.1_)
Do you have any suggestion of what I can do? If not, I could just work by exporting all data as a .tsv file, correct?
The error message is a bit of a misnomer. It is actually telling you that it can not find a package called QIIME2R in CRAN. Broadly speaking, there are 3 repositories you will use to install packages for R: CRAN, Bioconductor, and Github. CRAN is the general repository for packages which is where install.packages() installs packages from by default. Bioconductor is where many bioinformatics tools are located and is where biocLite() pulls its packages from. Github is usually where the latest development versions of packages or new packages that have not yet gone into a major repository go (like qiime2R). To install from github, the easiest way is using devtools::install_github(). While I plan on submitting qiime2R to bioconductor, for now it is only available from github. You can install it as below:
install.packages("devtools") #if you don't have devtools installed
devtools::install_github("jbisanz/qiime2R")
With all that said, it does specify that your R version should be 3.5 or greater in the current version which is a bit artificial but what can I say, update your deal.
Quick question. I do have Rstudio 3.5, and I used the code you mentioned to install the software, but, I still get the same error and in addition, I received this error.
devtools::install_github("jbisanz/qiime2R") Skipping install of 'qiime2R' from a github remote, the SHA1 (ba443df0) has not changed since last install. ** Use force = TRUE to force installation**
This would actually suggest you have already installed the package. It is saying that it won’t update the package because it is identical to the one that is there. You should be able to load it now with library(qiime2R).
(Confusingly) Rstudio is an interface to R and its version is unrelated to your R version. Download the latest version here for your operating system: https://www.r-project.org/. Then make sure you have also installed devtools. If it still does not work, please post the error message when you try to install.
It appears that devtools is in the middle of installing in your screenshot. I do not see an error raised. The installation of tools that require compilation may not be instantaneous. It appears you have R 3.4.4 which should be supported.
Warning message:
In i.p(...) :
installation of package ‘C:/Users/ashoo/AppData/Local/Temp/RtmpEhm8Bn/file567060197614/qiime2R_0.99.6.tar.gz’ had non-zero exit status
And generally this one when I try to load the library:
library(qiime2R)
Error in library(qiime2R) : there is no package called ‘qiime2R’
Any help you can offer would be highly appreciated, please and thank you.