Deploy to shinyapps.io fails due to sf error

shinyappsio
sf

#1

Hi when I try to deploy I get an error. It seems the sf package is not able to install and so the app cannot deploy. Has anyone else come across this problem? Link to app is:

deploy error log and rsconnect::appDependencies() outputs are below.

RcppExports.cpp: In function ‘SEXPREC* _sf_CPL_write_wkb(SEXP, SEXP)’:
RcppExports.cpp:957:32: error: ‘isLongjumpSentinel’ is not a member of ‘Rcpp::internal’
     bool rcpp_isLongjump_gen = Rcpp::internal::isLongjumpSentinel(rcpp_result_gen);
                                ^
RcppExports.cpp:959:9: error: ‘resumeJump’ is not a member of ‘Rcpp::internal’
         Rcpp::internal::resumeJump(rcpp_result_gen);
         ^
/opt/R/3.5.1/lib/R/etc/Makeconf:168: recipe for target 'RcppExports.o' failed
make: *** [RcppExports.o] Error 1
make: *** Waiting for unfinished jobs....
ERROR: compilation failed for package ‘sf’
* removing ‘/opt/R/3.5.1/lib/R/library/sf’################################# End Task Log ################################# 
Error: Unhandled Exception: Child Task 568558354 failed: Error building image: Error building sf (0.7-1). Build exited with non-zero status: 1
Execution halted
> rsconnect::appDependencies()
          package    version source
1              BH   1.66.0-1   CRAN
2             DBI      1.0.0   CRAN
3            MASS     7.3-50   CRAN
4          Matrix     1.2-14   CRAN
5              R6      2.2.2   CRAN
6    RColorBrewer      1.1-2   CRAN
7            Rcpp    0.12.17   CRAN
8           abind      1.4-5   CRAN
9     affinething 0.0.0.9000 github
10     assertthat      0.2.0   CRAN
11      base64enc      0.1-3   CRAN
12          bindr      0.1.1   CRAN
13       bindrcpp      0.2.2   CRAN
14           brew      1.0-6   CRAN
15          callr      3.0.0   CRAN
16          class     7.3-14   CRAN
17       classInt      0.2-3   CRAN
18            cli      1.0.1   CRAN
19     colorspace      1.3-2   CRAN
20         crayon      1.3.4   CRAN
21      crosstalk      1.0.0   CRAN
22         digest     0.6.18   CRAN
23          dplyr      0.7.7   CRAN
24          e1071      1.6-8   CRAN
25          fansi      0.4.0   CRAN
26        gdtools      0.1.7   CRAN
27        ggplot2      3.1.0   CRAN
28           glue      1.3.0   CRAN
29      gridExtra        2.3   CRAN
30         gtable      0.2.0   CRAN
31      htmltools      0.3.6   CRAN
32    htmlwidgets        1.3   CRAN
33         httpuv      1.4.5   CRAN
34       jsonlite        1.5   CRAN
35       labeling        0.3   CRAN
36          later      0.7.5   CRAN
37        lattice    0.20-35   CRAN
38       lazyeval      0.2.1   CRAN
39        leaflet      2.0.2   CRAN
40 leaflet.extras      1.0.0   CRAN
41       magrittr        1.5   CRAN
42        mapedit      0.4.3 github
43           maps      3.3.0   CRAN
44        mapview      2.6.0   CRAN
45       markdown        0.8   CRAN
46           mgcv     1.8-24   CRAN
47           mime        0.6   CRAN
48         miniUI    0.1.1.1   CRAN
49        munsell      0.5.0   CRAN
50           nlme    3.1-137   CRAN
51         pillar      1.3.0   CRAN
52      pkgconfig      2.0.2   CRAN
53          plogr      0.2.0   CRAN
54           plyr      1.8.4   CRAN
55            png      0.1-7   CRAN
56       processx      3.2.0   CRAN
57       promises      1.0.1   CRAN
58             ps      1.2.1   CRAN
59          purrr      0.2.5   CRAN
60         raster     2.7-15   CRAN
61       reshape2      1.4.3   CRAN
62          rlang    0.3.0.1   CRAN
63      satellite      1.0.1   CRAN
64         scales      1.0.0   CRAN
65             sf      0.7-1   CRAN
66          shiny      1.2.0   CRAN
67    sourcetools      0.1.7   CRAN
68             sp      1.3-1   CRAN
69         spData    0.2.9.0   CRAN
70          stars      0.1-1   CRAN
71        stringi      1.2.3   CRAN
72        stringr      1.3.1   CRAN
73        svglite      1.2.1   CRAN
74         tibble      1.4.2   CRAN
75     tidyselect      0.2.5   CRAN
76          units      0.6-1   CRAN
77           utf8      1.1.4   CRAN
78           uuid      0.1-2   CRAN
79        viridis      0.5.1   CRAN
80    viridisLite      0.3.0   CRAN
81        webshot      0.5.1   CRAN
82          withr      2.1.2   CRAN
83         xtable      1.8-3   CRAN
84           yaml      2.2.0   CRAN

#2

Try updating your version of Rcpp and reinstalling sf.


#3

Hi Josh,

thanks for the quick reply. Yesterday I reverted back to sf 0.6-3 which fixed the issue but was not an optimal solution.

Updating Rcpp and and reinstalling sf has also worked. The app is now uploading as expected


#4

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