highcharter
highcharter copied to clipboard
No binary available for R 4.2
Problem Description
We are using highcharter
to great effect in some applications on GitHub Enterprise. Recently, we began receiving CI failures during R-CMD-Check
with the following error log:
* installing *source* package 'highcharter' ...
** package 'highcharter' successfully unpacked and MD5 sums checked
** using staged installation
** R
** data
*** moving datasets to lazyload DB
** inst
** byte-compile and prepare package for lazy loading
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared object '/runner/_work/_temp/Library/igraph/libs/igraph.so':
libglpk.so.40: cannot open shared object file: No such file or directory
Calls: <Anonymous> ... asNamespace -> loadNamespace -> library.dynam -> dyn.load
ERROR: lazy loading failed for package 'highcharter'
Execution halted
* removing '/runner/_work/_temp/Library/highcharter'
On the Posit Package Manager we found that for the following distribution no binary was available:
- Ubuntu 20.04 (Focal)
- R 4.2
Current Solution
In order to get the package working on CI again, we rolled back our R version to 4.1 and specified installation of all system prerequisites described on the site:
apt-get install -y libicu-dev
apt-get install -y pandoc
apt-get install -y make
apt-get install -y libglpk-dev
apt-get install -y libgmp3-dev
apt-get install -y libxml2-dev
apt-get install -y libcurl4-openssl-dev
apt-get install -y libssl-dev
apt-get install -y zlib1g-dev
It would be great to keep up to date with the current R version. I apologize if this is not the proper place to post this, or if this has more to do on the Posit side than on highcharter
's.
Any insight or advice appreciated and thank you!
I am using
FROM rocker/r-ver:4.3.1
in my build and added
# for high charts (highcharter) RUN apt-get install -y libicu-dev && \ apt-get install -y pandoc && \ apt-get install -y make && \ apt-get install -y libglpk-dev && \ apt-get install -y libgmp3-dev && \ apt-get install -y libxml2-dev && \ apt-get install -y libcurl4-openssl-dev && \ apt-get install -y libssl-dev && \ apt-get install -y zlib1g-dev
And resolved a similar problem.