Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rcpp package error for RShiny app republication

Tags:

r

rcpp

shiny

I'm having issues re-publishing an RShiny app I have published (and re-published) previously.

The app runs fine locally (in the RStudio preview and if I run it in my browser), but when I try to re-publish it, I get this error and the re-publication process aborts.

make: *** [/opt/R/4.4.2/lib/R/etc/Makeconf:204: barrier.o] Error 1
ERROR: compilation failed for package ‘Rcpp’
* removing ‘/usr/lib/R/Rcpp’## End Task Log ################################################################
Error: Unhandled Exception: child_task=1510757110 child_task_status=failed: Error building image: Error building Rcpp (1.0.13). Build exited with non-zero status: 1
Execution halted

Here is a notepad file with the entire deployment process output incase there is something useful there that I don't know about.

I initially thought it was a one-off issue, but I've tried re-publishing the app over the past two months now and I keep getting the same error.

The GitHub linked on the app has a lot of files, but the actual app code is this file.

I tried re-reunning the app, waiting to see if this issue would be fixes on Shiny's end, and checking that my Rcpp package is up to date

like image 452
Siobhan Schenk Avatar asked Sep 03 '25 14:09

Siobhan Schenk


1 Answers

See https://forum.posit.co/t/error-building-rcpp-1-0-13-when-deploying-shiny-app/196970 There was a problem in v1.0.13 of Rcpp, but it has been fixed and the newer version is now on CRAN. So if you run install.packages("Rcpp") and retry, it should go smoothly.

like image 153
smartse Avatar answered Sep 05 '25 08:09

smartse