Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

demo failig #502

Closed
gianfilippo opened this issue Dec 11, 2023 · 1 comment
Closed

demo failig #502

gianfilippo opened this issue Dec 11, 2023 · 1 comment

Comments

@gianfilippo
Copy link

Hi,

I installed the package as described, without any issue.

I then issue the commands to run the demo
conda activate drop_env
mkdir ~/drop_demo
cd ~/drop_demo
drop demo
snakemake --cores 1 -n

The last command results in the following error
WARNING: Less than 30 IDs in DROP_GROUP outrider
WARNING: Less than 30 IDs in DROP_GROUP outrider_external
WARNING: Less than 30 IDs in DROP_GROUP fraser
WARNING: Less than 30 IDs in DROP_GROUP fraser_external
check for missing R packages
Error in if (is.na(a)) return(-1L) : the condition has length > 1
Calls: compareVersion
Execution halted
CalledProcessError in file /demo_dir/Snakefile, line 13:
Command '['Rscript', PosixPath('$HOME/.conda/envs/drop_env/lib/python3.12/site-packages/drop/installRPackages.R'), PosixPath('$HOME/.conda/envs/drop_env/lib/python3.12/site-packages/drop/requirementsR.txt')]' returned non-zero exit status 1.
File "/demo_dir/Snakefile", line 13, in
File "$HOME/.conda/envs/drop_env/lib/python3.12/site-packages/drop/setupDrop.py", line 35, in installRPackages
File "$HOME/.conda/envs/drop_env/lib/python3.12/subprocess.py", line 502, in check_returncode

Can you please help ?

Thanks

@gianfilippo
Copy link
Author

Hi,
I resolved then issue.
In your installRPackages.R, the line
if (!pckg_name %in% installed$Package || (!is.na(version) && compareVersion(installed[Package == pckg_name, Version], version) < 0))

expects to find at most one entry in the "installed" matrix for a specific package.
The "installed.packages" command in the script reports also packages installed outside the conda env, which can result in more than one entry in the "installed" matrix for a specific package.

Best

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant