Hi @vheidrich, one thing I just realized is that the shebang line for SRScurve.R
is:
#! /usr/bin/Rscript
Shouldn't this be altered based on the conda environment? That is, on my machine this should be:
#! /Users/robesonmichael/AnalysisSoftware/miniconda3/envs/qiime2-2020.8/bin/Rscript
When I edit this line and run the same command as I did before I get a new error:
qiime srs SRScurve --i-table table-dada2.qza --p-step 100 --p-max-sample-size 3500 --p-rarefy-comparison --p-rarefy-comparison-legend --p-rarefy-repeats 100 --p-srs-color 'blue' --p-rarefy-color '#333333' --o-visualization SRScurve-plot.qzv --verbose
Running external command line application(s). This may print messages to stdout and/or stderr.
The command(s) being run are below. These commands cannot be manually re-run as they will depend on temporary files that no longer exist.
Command: SRScurve.R /var/folders/cc/rksyds7175786_2b0vhx4rrr0000gp/T/tmp7mfpg8b2/table.tsv richness 100 0 3500 True 100 True blue #333333 solid longdash False /var/folders/cc/rksyds7175786_2b0vhx4rrr0000gp/T/qiime2-temp-mvwkcy_m
R version 3.5.1 (2018-07-02)
Error in contrib.url(repos, type) :
trying to use CRAN without setting a mirror
Calls: install.packages -> grep -> contrib.url
Execution halted
Traceback (most recent call last):
File "/Users/robesonmichael/AnalysisSoftware/miniconda3/envs/qiime2-2020.8/lib/python3.6/site-packages/q2cli/commands.py", line 329, in call
results = action(**arguments)
File "", line 2, in SRScurve
File "/Users/robesonmichael/AnalysisSoftware/miniconda3/envs/qiime2-2020.8/lib/python3.6/site-packages/qiime2/sdk/action.py", line 245, in bound_callable
output_types, provenance)
File "/Users/robesonmichael/AnalysisSoftware/miniconda3/envs/qiime2-2020.8/lib/python3.6/site-packages/qiime2/sdk/action.py", line 452, in callable_executor
ret_val = self._callable(output_dir=temp_dir, **view_args)
File "/Users/robesonmichael/AnalysisSoftware/miniconda3/envs/qiime2-2020.8/lib/python3.6/site-packages/q2_srs/_SRScurve.py", line 53, in SRScurve
run_commands([cmd])
File "/Users/robesonmichael/AnalysisSoftware/miniconda3/envs/qiime2-2020.8/lib/python3.6/site-packages/q2_srs/_SRScurve.py", line 29, in run_commands
subprocess.run(cmd, check=True)
File "/Users/robesonmichael/AnalysisSoftware/miniconda3/envs/qiime2-2020.8/lib/python3.6/subprocess.py", line 438, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['SRScurve.R', '/var/folders/cc/rksyds7175786_2b0vhx4rrr0000gp/T/tmp7mfpg8b2/table.tsv', 'richness', '100', '0', '3500', 'True', '100', 'True', 'blue', '#333333', 'solid', 'longdash', 'False', '/var/folders/cc/rksyds7175786_2b0vhx4rrr0000gp/T/qiime2-temp-mvwkcy_m']' returned non-zero exit status 1.
Plugin error from srs:
Command '['SRScurve.R', '/var/folders/cc/rksyds7175786_2b0vhx4rrr0000gp/T/tmp7mfpg8b2/table.tsv', 'richness', '100', '0', '3500', 'True', '100', 'True', 'blue', '#333333', 'solid', 'longdash', 'False', '/var/folders/cc/rksyds7175786_2b0vhx4rrr0000gp/T/qiime2-temp-mvwkcy_m']' returned non-zero exit status 1.
See above for debug info.
I noticed this:
Error in contrib.url(repos, type) :
trying to use CRAN without setting a mirror
Calls: install.packages -> grep -> contrib.url
Execution halted
Any ideas?