travis and RSPM

I'm trying to use the public RSPM within travis, however I getting a package error. I have two travis runs:

The key lines are around line 23. In the good run, I install stringi before using RSPM, in the bad run, I install stringi with RSPM. In the bad run, travis bombs with the error:

> Rscript -e "stringi::stri_c(1)"
Error in dyn.load(file, DLLpath = DLLpath, ...) : 
  unable to load shared object '/home/travis/R/Library/stringi/libs/stringi.so':
  libicui18n.so.60: cannot open shared object file: No such file or directory

In both travis runs, I've set dist: bionic.

Hi,

It looks like Travis is still using xenial for these builds. Under Build system information in the logs, I see:

Build language: r
Build dist: bionic
...
Operating System Details
Distributor ID:	Ubuntu
Description:	Ubuntu 16.04.6 LTS
Release:	16.04
Codename:	xenial

stringi is built with ICU 60 on bionic, so it's not compatible with xenial's ICU 55.

Based on this thread, Travis may not support dist: bionic with R yet: https://travis-ci.community/t/for-dist-bionic-xenial-vm-is-used-instead-with-language-rust/4487.

If that's the case, you can use RSPM's xenial binary repo instead. https://packagemanager.rstudio.com/all/__linux__/xenial/latest

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.