R 3.2 on travis - jsonlite error - "undefined symbol R_GetConnection"

If I run Travis CI with R 3.2 in my test that runs these lines:

ddi <- read_ipums_ddi(ripums_example("cps_00006.xml"))
ipums_view(ddi, launch = FALSE)

I get the following error:

unable to load shared object '/usr/lib/R/site-library/jsonlite/libs/jsonlite.so':
  /usr/lib/R/site-library/jsonlite/libs/jsonlite.so: undefined symbol: R_GetConnection

Any ideas?

The R_GetConnection API is only called for R >= 3.3, so it should not be called by R 3.2 at all.

I think you are using a version of r-cran-jsonlite which was built using a more recent version of R, but then trying to load it in an older version. Try installing jsonlite from source.

1 Like