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

Container Image not building due to missing intSDM from CRAN #15

Open
dnlbauer opened this issue Jun 7, 2024 · 0 comments
Open

Container Image not building due to missing intSDM from CRAN #15

dnlbauer opened this issue Jun 7, 2024 · 0 comments

Comments

@dnlbauer
Copy link

dnlbauer commented Jun 7, 2024

Hi,

Raising this issue because my last PR got closed without any feedback; so I am not sure if you are accepting PRs..

Building the container image fails for me at Line 203. Apparently, intSDM is not available from CRAN as expected during this step

uc-CWR/container/Dockerfile

Lines 203 to 209 in ece6f10

RUN . /conda/etc/profile.d/conda.sh && \
conda activate /conda/env && \
Rscript -e 'devtools::install_github("PhilipMostert/PointedSDMs", dependencies=FALSE)' && \
# Bugfix: Installing intSDM directly from github doesn't work so we install it first from cran
Rscript -e 'install.packages("intSDM")' && \
Rscript -e 'devtools::install_github("PhilipMostert/intSDM", dependencies=FALSE)' && \
/conda/bin/conda clean -afy

13.96 * DONE (PointedSDMs)
14.58 Warning message:
14.58 package 'intSDM' is not available for this version of R
14.58 
14.58 A version of this package for your version of R might be available elsewhere,
14.58 see the ideas at
14.58 https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installing-packages 
15.36 Error: Failed to install 'unknown package' from GitHub:
15.36   Line starting 'Vi ...' is malformed!
15.36 Execution halted
------
Dockerfile:203
--------------------
 202 |     # Install intSDM etc
 203 | >>> RUN . /conda/etc/profile.d/conda.sh && \
 204 | >>>     conda activate /conda/env && \
 205 | >>>     Rscript -e 'devtools::install_github("PhilipMostert/PointedSDMs", dependencies=FALSE)' && \
 206 | >>>     # Bugfix: Installing intSDM directly from github doesn't work so we install it first from cran
 207 | >>>     Rscript -e 'install.packages("intSDM")' && \
 208 | >>>     Rscript -e 'devtools::install_github("PhilipMostert/intSDM", dependencies=FALSE)' && \
 209 | >>>     /conda/bin/conda clean -afy
 210 |     

Also, building HEAD of PhilipMostert/intSDM throws errors for me. I was able to get the container to build by using the latest release version of "intSDM" from github: https://github.com/PhilipMostert/intSDM/releases/tag/V2.0.1:

RUN . /conda/etc/profile.d/conda.sh && \
    conda activate /conda/env && \
    Rscript -e 'devtools::install_github("PhilipMostert/PointedSDMs", dependencies=FALSE)' && \
    Rscript -e 'devtools::install_url("https://github.com/PhilipMostert/intSDM/archive/refs/tags/V2.0.1.zip", dependencies=FALSE)' && \
    /conda/bin/conda clean -afy

Are there any concerns with using this version, or does MoDGP also work with intSDM 2.0.1?

@dnlbauer dnlbauer changed the title Container Image not building due to missing intSDM on CRAN Container Image not building due to missing intSDM from CRAN Jun 7, 2024
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