Error in packageVersion(“dada2”) : package ‘dada2’ not found

@AlfalfaResearcher may I know how did you check the version of dada2?
Sorry for this super basic question, I tried on
“packageVersion(“dada2”)” but get error message saying
Error in packageVersion(“dada2”) : package ‘dada2’ not found

Thanks.

try this:

$ conda list | grep 'dada2'
bioconductor-dada2        1.10.0           r351h0a44026_0    bioconda
q2-dada2                  2019.4.0                 py36_0    qiime2/label/r2019.4

You must import that library first

> library(dada2)
Loading required package: Rcpp
> packageVersion("dada2")
[1] ‘1.10.0’

Thanks @Nicholas_Bokulich, I tried all these, but still I can’t that info out:

[email protected]:~/Myvolume_1/BCAA$ conda list | grep “dada2”
[email protected]:~/Myvolume_1/BCAA$ miniconda list | grep “dada2”
miniconda: command not found
[email protected]:~/Myvolume_1/BCAA$ conda list | grep ‘dada2’
[email protected]:~/Myvolume_1/BCAA$

library(dada2)
Error in library(dada2) : there is no package called ‘dada2’
conda list | grep ‘dada2’
Error: unexpected symbol in “conda list”
conda list | grep “dada2”
Error: unexpected symbol in “conda list”
miniconda list | grep “dada2”
Error: unexpected symbol in “miniconda list”

[email protected]:~/Myvolume_1/BCAA$ conda list | grep ‘dada2’
[email protected]:~/Myvolume_1/BCAA$ cd …
[email protected]:~/Myvolume_1$ conda list | grep ‘dada2’
[email protected]:~/Myvolume_1$ cd …
[email protected]:~$ conda list | grep ‘dada2’

[email protected]:~$

I also tried this:

system(‘conda list | grep dada2’)
system(“conda list | grep dada2”)

but no info on the version is coming out. Any suggestion?

Hi @Clara,
Did you activate the correct conda environment? Make sure you activate your QIIME 2 version 2019.4 environment as described in the installation instructions (source activate qiime2-2019.4). Then use qiime --help to confirm that QIIME 2 is installed along with q2-dada2.

If you are not able to retrieve this package information after activating the correct environment, then there must be something wrong with your installation, and I recommend uninstalling and installing a new environment.

Hi @Nicholas_Bokulich, yes I got it by using conda list | grep “dada2” after I activate the qiime environment! Thanks.

Regards
Clara

1 Like

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.