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