Fix R dependencies for gsl and reticulate in the METviewer Docker image. #226
Labels
priority: high
High Priority
reporting: DTC NOAA BASE
NOAA Office of Atmospheric Research DTC Project
requestor: NCAR/RAL
NCAR Research Applications Laboratory
type: bug
Fix something that is not working
Milestone
Describe the Problem
This issue arose via MET-Help:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=97638
The user reported that when running the METviewer container, the plot fails whenever aggregation methods are requested. I replicated this behavior and produced the following R-script error message:
So debugging reveals that both the gsl and reticulate libraries are missing from the installation of R inside the container. Both are included by at least one of the METviewer R-scripts.
The issue with GSL is that yum install gsl-devel installs GSL version 1.15. However, the R GSL package requires GSL version 2.1 or higher. So fix the system level installation of GSL and add one line to also install the missing reticulate package.
Expected Behavior
The aggregation methods should work inside the container.
Environment
Describe your runtime environment:
1. METviewer Docker image
To Reproduce
Describe the steps to reproduce the behavior:
*1. Follow the METplus Training video: https://dtcenter.github.io/METplus-Training/modules/METviewer/docker.html
2. Launch METviewer and load sample data.
3. Make any plot that uses aggregation.
4. Note the error in the Rscript log tab.
Post relevant sample data following these instructions:
https://dtcenter.org/community-code/model-evaluation-tools-met/met-help-desk#ftp
Relevant Deadlines
List relevant project deadlines here or state NONE.
Funding Source
Define the source of funding and account keys here or state NONE.
Define the Metadata
Assignee
Labels
Projects and Milestone
Define Related Issue(s)
Consider the impact to the other METplus components.
No impacts.
Bugfix Checklist
See the METplus Workflow for details.
Branch name:
bugfix_<Issue Number>_main_<Version>_<Description>
Pull request:
bugfix <Issue Number> main_<Version> <Description>
Select: Reviewer(s), Project(s), Milestone, and Linked issues
Branch name:
bugfix_<Issue Number>_develop_<Description>
Pull request:
bugfix <Issue Number> develop <Description>
The text was updated successfully, but these errors were encountered: