Unable to deploy my Shiny App to shinyapps.io

Hi! I encountered the following error messages when I tried to deploy my app to shinyapps.io.

The two main errors for the deployment lie in:

  1. Warning in FUN(X[[i]], ...) :
    Unable to find repository URL for package foreign
  2. Failing to install package "nloptr". The detailed error messages are listed below:
    libtool: link: ERROR: no information for variable 'AR' cru .libs/libutil.a .libs/mt19937ar.o .libs/sobolseq.o .libs/timer.o .libs/stop.o .libs/redblack.o .libs/qsort_r.o .libs/rescale.o
    make[2]: Leaving directory '/tmp/RtmpFtQHcN/R.INSTALL18729d3319e/nloptr/src/nlopt_src/util'
    make[1]: Leaving directory '/tmp/RtmpFtQHcN/R.INSTALL18729d3319e/nloptr/src/nlopt_src'
  • installing to library ‘/opt/R/3.6.0/lib/R/library’
  • installing source package ‘nloptr’ ...
    ** package ‘nloptr’ successfully unpacked and MD5 sums checked
    ** using staged installation
    ../libtool: line 1102: ERROR:: command not found
    make[2]: *** [Makefile:371: libutil.la] Error 127
    make[1]: *** [Makefile:574: all-recursive] Error 1
    make: *** [Makefile:438: all] Error 2
    ERROR: configuration failed for package ‘nloptr’
  • removing ‘/opt/R/3.6.0/lib/R/library/nloptr’
    ################################# End Task Log #################################
    Error: Unhandled Exception: Child Task 912902501 failed: Error building image: Error building nloptr (1.2.2.2). Build exited with non-zero status: 1
    Execution halted

I am using R version 3.6.0 and my Shiny app is developed within Rstudio.

Are there any solutions to my problems? Thanks!!

1 Like