shiny-server crashed, Rcpp undefined symbol: CAR0

After upgrading R from 3.6.3 to 4.0.0, shiny apps crashed on Shiny-Server.
Here are the log:

Error in dyn.load(file, DLLpath = DLLpath, ...) :
  unable to load shared object '/data/yulab/wangming/Library/R/4.0/library/Rcpp/libs/Rcpp.so':
  /data/yulab/wangming/Library/R/4.0/library/Rcpp/libs/Rcpp.so: undefined symbol: CAR0
Calls: local ... asNamespace -> loadNamespace -> library.dynam -> dyn.load
Execution halted

I am working on Ubuntu 18.04 Server, R 4.0.0, Shiny-server v1.5.13.944

before looking at the shinyapp deployment. Can you confirm that Rcpp works in a small local R script ?

library(Rcpp)
#> 
#> Attaching package: 'Rcpp'
#> The following object is masked from 'package:inline':
#> 
#>     registerPlugin
cppFunction('int add(int x, int y, int z) {
  int sum = x + y + z;
  return sum;
}')
# add works like a regular R function
add
#> function (x, y, z) 
#> .Call(<pointer: 0x7f96ecb3ef20>, x, y, z)
add(1, 2, 3)
#> [1] 6

It works from local command.
I tried re-install the Rcpp, Shiny-Server.

Here are more test:

  1. Shiny Apps works from Rstudio on this machine.
  2. On another PC (for test only), with the same OS, R. Shiny-Server works, both from rstudio and url access

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