pammtools icon indicating copy to clipboard operation
pammtools copied to clipboard

Anaconda package

Open RenzoTale88 opened this issue 3 years ago • 10 comments

Hello, I was wondering if it would be possible to release the package also as an anaconda package, so that it can be installed into local anaconda environments? I'm asking because that would simplify working and creating docker images, as well as workflows that can therefore access this package :) Andrea

RenzoTale88 avatar Jul 09 '21 08:07 RenzoTale88

Hi, what would it take to release it as an anaconda package?

adibender avatar Jul 15 '21 12:07 adibender

I don't think I can control that. At least I didn't find any info on how to add packages. Did you try any of the approaches here: https://stackoverflow.com/questions/36652015/how-to-install-r-packages-not-in-the-conda-repositories

adibender avatar Jul 15 '21 12:07 adibender

@adibender I've managed to build the anaconda package. Do you want to get the recipe files to create it and upload it yourself, or do you prefer me to upload it directly?

RenzoTale88 avatar Jul 16 '21 12:07 RenzoTale88

Probably good, if you tell me how to do it (or link some documentation), so I can update the package when there is a new version.

adibender avatar Jul 16 '21 13:07 adibender

Sure thing! So, I've proceeded following the instruction in the link you sent, towards the bottom. You can find more here too: https://conda.io/projects/conda-build/en/latest/user-guide/tutorials/build-r-pkgs.html Briefly, I've first created an anaconda skeleton:

mkdir ~/pammtools && cd ~/pammtools
conda skeleton cran pammtools

This will create all the files needed to build an anaconda package. Then, I've modified the meta.yml in the folder just created to add the following lines:

    - conda-forge::r-base<4
    - conda-forge::r-cowplot
    - conda-forge::r-tidyverse
    - conda-forge::r-reshape2
    - conda-forge::r-ggfortify
    - conda-forge::r-lazyeval
    - conda-forge::r-plyr

Under the requirements > host section. Then, I've built the package as follow:

cd ~
conda build pammtools

This will create the pammtools tar file in your anaconda installation path. You have then to follow these instructions to upload to anaconda cloud and make it available as a package: https://conda.io/projects/conda-build/en/latest/user-guide/tutorials/build-r-pkgs.html#optional-uploading-packages-to-anaconda-org

Hope this help!

Andrea

RenzoTale88 avatar Jul 16 '21 14:07 RenzoTale88

Thanks, I will try when I have a little more time

adibender avatar Jul 20 '21 21:07 adibender

Hi @RenzoTale88 I will be on vacation through august and won't have time for that beforehand. If you need it urgently, go ahead and upload yourself. I will then try to keep the conda upload up to date for new versions

adibender avatar Jul 28 '21 06:07 adibender

Hi @adibender I'm not in a hurry, no worries. Enjoy your holiday!

RenzoTale88 avatar Jul 29 '21 06:07 RenzoTale88

Any update on this?

Nosferican avatar Mar 07 '22 03:03 Nosferican

I tried, but something didn't work, so I didn't pursue it further.

adibender avatar Mar 07 '22 08:03 adibender

I will close this, reopen if someone is willing to take this on.

adibender avatar Jan 10 '23 12:01 adibender