R connect server shiny app package issues

shiny
rstudioconnect

#1

I have a shiny app with a list of libraries being used. I am trying to publish this app using R studio connect server. This app works fine locally.But when I publish it keep on throwing an error Error in library(formattable) : there is no package called "formattable". This happens for lubridate and tidyverse.
I dont have access to the machine where R studio connect server is installed. So we had someone else who has access to install the complete list of libraries and the others dont seem to have an issue.

When I remove the three packages the app seems to be working fine. What should I be looking for to fix this issue.


#2

Hi @sten,

It's hard to say what the issue is here without more information, but were I you, I would start by investigating whether the Rcpp package is able to install successfully on your Connect server. The packages formattable and lubridate require Rcpp, and tidyverse pulls in lubridate. You might find the installation reference sections of this resource to be useful for passing to your administrator: https://teuder.github.io/rcpp4everyone_en/020_install.html


#3

@kellobri This is log I get when I publish the app.This is after installing Rcpp

2018/08/27 16:08:28.800666190       OK (symlinked cache)
2018/08/27 16:08:28.800878974 Installing colorspace (1.3-2) ...
2018/08/27 16:08:28.816183804 Using cached colorspace.
2018/08/27 16:08:28.816410380       OK (symlinked cache)
2018/08/27 16:08:28.816626958 Installing crayon (1.3.4) ...
2018/08/27 16:08:28.835792650 Using cached crayon.
2018/08/27 16:08:28.836018759       OK (symlinked cache)
2018/08/27 16:08:28.836213471 Installing curl (3.2) ...
2018/08/27 16:08:28.853243173 Using cached curl.
2018/08/27 16:08:28.853472282       OK (symlinked cache)
2018/08/27 16:08:28.853661422 Installing data.table (1.11.4) ...
2018/08/27 16:08:28.868969659 Using cached data.table.
2018/08/27 16:08:28.869182877       OK (symlinked cache)
2018/08/27 16:08:28.869403678 Installing dichromat (2.0-0) ...
2018/08/27 16:08:28.881992051 Using cached dichromat.
2018/08/27 16:08:28.882203356       OK (symlinked cache)
2018/08/27 16:08:28.882418440 Installing digest (0.6.15) ...
2018/08/27 16:08:28.901276904 Using cached digest.
2018/08/27 16:08:28.901509717       OK (symlinked cache)
2018/08/27 16:08:28.901706189 Installing glue (1.2.0) ...
2018/08/27 16:08:28.917962371 Using cached glue.
2018/08/27 16:08:28.918173043       OK (symlinked cache)
2018/08/27 16:08:28.918401558 Installing gtable (0.2.0) ...
2018/08/27 16:08:28.932160003 Using cached gtable.
2018/08/27 16:08:28.932390350       OK (symlinked cache)
2018/08/27 16:08:28.932611992 Installing jsonlite (1.5) ...
2018/08/27 16:08:28.952015464 Using cached jsonlite.
2018/08/27 16:08:28.952253714       OK (symlinked cache)
2018/08/27 16:08:28.952473506 Installing labeling (0.3) ...
2018/08/27 16:08:28.966202166 Using cached labeling.
2018/08/27 16:08:28.966439308       OK (symlinked cache)
2018/08/27 16:08:28.966634227 Installing lattice (0.20-35) ...
2018/08/27 16:08:28.983152698 Using cached lattice.
2018/08/27 16:08:28.983390019       OK (symlinked cache)
2018/08/27 16:08:28.983638501 Installing lazyeval (0.2.1) ...
2018/08/27 16:08:29.003034611 Using cached lazyeval.
2018/08/27 16:08:29.003280639       OK (symlinked cache)
2018/08/27 16:08:29.003486149 Installing magrittr (1.5) ...
2018/08/27 16:08:29.017426990 Using cached magrittr.
2018/08/27 16:08:29.017652860       OK (symlinked cache)
2018/08/27 16:08:29.017863271 Installing mime (0.5) ...
2018/08/27 16:08:29.032933835 Using cached mime.
2018/08/27 16:08:29.033169294       OK (symlinked cache)
2018/08/27 16:08:29.033385080 Installing openssl (1.0.1) ...
2018/08/27 16:08:29.049563955 Using cached openssl.
2018/08/27 16:08:29.049767116       OK (symlinked cache)
2018/08/27 16:08:29.049976360 Installing packrat (0.4.9-2) ...
2018/08/27 16:08:29.068426036 Using cached packrat.
2018/08/27 16:08:29.068615404       OK (symlinked cache)
2018/08/27 16:08:29.068833074 Installing pkgconfig (2.0.1) ...
2018/08/27 16:08:29.082195996 Using cached pkgconfig.
2018/08/27 16:08:29.082505841       OK (symlinked cache)
2018/08/27 16:08:29.082870701 Installing plogr (0.2.0) ...
2018/08/27 16:08:29.098054581 Using cached plogr.
2018/08/27 16:08:29.098280683       OK (symlinked cache)
2018/08/27 16:08:29.098478528 Installing rlang (0.2.0) ...
2018/08/27 16:08:29.118713945 Using cached rlang.
2018/08/27 16:08:29.118923193       OK (symlinked cache)
2018/08/27 16:08:29.119108494 Installing sourcetools (0.1.7) ...
2018/08/27 16:08:29.132669918 Using cached sourcetools.
2018/08/27 16:08:29.132889314       OK (symlinked cache)
2018/08/27 16:08:29.133083764 Installing utf8 (1.1.3) ...
2018/08/27 16:08:29.147908030 Using cached utf8.
2018/08/27 16:08:29.148142365       OK (symlinked cache)
2018/08/27 16:08:29.148343744 Installing viridisLite (0.3.0) ...
2018/08/27 16:08:29.166620011 Using cached viridisLite.
2018/08/27 16:08:29.166833866       OK (symlinked cache)
2018/08/27 16:08:29.167041392 Installing withr (2.1.2) ...
2018/08/27 16:08:29.190324807 Using cached withr.
2018/08/27 16:08:29.190348736       OK (symlinked cache)
2018/08/27 16:08:29.190412617 Installing xtable (1.8-2) ...
2018/08/27 16:08:29.209034091 Using cached xtable.
2018/08/27 16:08:29.209396711       OK (symlinked cache)
2018/08/27 16:08:29.209646705 Installing yaml (2.1.19) ...
2018/08/27 16:08:29.228178330 Using cached yaml.
2018/08/27 16:08:29.228497002       OK (symlinked cache)
2018/08/27 16:08:29.228782873 Installing plyr (1.8.4) ...
2018/08/27 16:08:29.261154698 Using cached plyr.
2018/08/27 16:08:29.261402059       OK (symlinked cache)
2018/08/27 16:08:29.261623362 Installing munsell (0.4.3) ...
2018/08/27 16:08:29.274906557 Using cached munsell.
2018/08/27 16:08:29.275131106       OK (symlinked cache)
2018/08/27 16:08:29.275358077 Installing cli (1.0.0) ...
2018/08/27 16:08:29.292249127 Using cached cli.
2018/08/27 16:08:29.292516768       OK (symlinked cache)
2018/08/27 16:08:29.292735889 Installing htmltools (0.3.6) ...
2018/08/27 16:08:29.313263919 Using cached htmltools.
2018/08/27 16:08:29.313457973       OK (symlinked cache)
2018/08/27 16:08:29.313679542 Installing Matrix (1.2-14) ...
2018/08/27 16:08:29.336435038 Using cached Matrix.
2018/08/27 16:08:29.336660960       OK (symlinked cache)
2018/08/27 16:08:29.336864231 Installing hexbin (1.27.2) ...
2018/08/27 16:08:29.350406096 Using cached hexbin.
2018/08/27 16:08:29.350678878       OK (symlinked cache)
2018/08/27 16:08:29.350860483 Installing nlme (3.1-137) ...
2018/08/27 16:08:29.367450758 Using cached nlme.
2018/08/27 16:08:29.367786990       OK (symlinked cache)
2018/08/27 16:08:29.368022439 Installing zoo (1.8-3) ...
2018/08/27 16:08:29.389013999 Using cached zoo.
2018/08/27 16:08:29.389246241       OK (symlinked cache)
2018/08/27 16:08:29.389444572 Installing httr (1.3.1) ...
2018/08/27 16:08:29.404428884 Using cached httr.
2018/08/27 16:08:29.404645048       OK (symlinked cache)
2018/08/27 16:08:29.404836720 Installing bindrcpp (0.2.2) ...
2018/08/27 16:08:29.429583688 Using cached bindrcpp.
2018/08/27 16:08:29.429800973       OK (symlinked cache)
2018/08/27 16:08:29.429999080 Installing later (0.7.2) ...
2018/08/27 16:08:29.459331644 Using cached later.
2018/08/27 16:08:29.459534049       OK (symlinked cache)
2018/08/27 16:08:29.459750709 Installing stringr (1.3.1) ...
2018/08/27 16:08:29.474336786 Using cached stringr.
2018/08/27 16:08:29.474555656       OK (symlinked cache)
2018/08/27 16:08:29.474767763 Installing scales (0.5.0) ...
2018/08/27 16:08:29.493547187 Using cached scales.
2018/08/27 16:08:29.493773771       OK (symlinked cache)
2018/08/27 16:08:29.493961600 Installing pillar (1.2.2) ...
2018/08/27 16:08:29.512814704 Using cached pillar.
2018/08/27 16:08:29.513028154       OK (symlinked cache)
2018/08/27 16:08:29.513247106 Installing htmlwidgets (1.2) ...
2018/08/27 16:08:29.527830481 Using cached htmlwidgets.
2018/08/27 16:08:29.528048610       OK (symlinked cache)
2018/08/27 16:08:29.528237810 Installing igraph (1.2.1) ...
2018/08/27 16:08:29.543525165 Using cached igraph.
2018/08/27 16:08:29.543718552       OK (symlinked cache)
2018/08/27 16:08:29.543910963 Installing mgcv (1.8-23) ...
2018/08/27 16:08:29.557116105 Using cached mgcv.
2018/08/27 16:08:29.557374508       OK (symlinked cache)
2018/08/27 16:08:29.557576535 Installing xts (0.11-0) ...
2018/08/27 16:08:29.580601015 Using cached xts.
2018/08/27 16:08:29.580817620       OK (symlinked cache)
2018/08/27 16:08:29.580989130 Installing promises (1.0.1) ...
2018/08/27 16:08:29.613087551 Using cached promises.
2018/08/27 16:08:29.613203313       OK (symlinked cache)
2018/08/27 16:08:29.613435437 Installing reshape2 (1.4.3) ...
2018/08/27 16:08:29.636749671 Using cached reshape2.
2018/08/27 16:08:29.636953240       OK (symlinked cache)
2018/08/27 16:08:29.637156565 Installing tibble (1.4.2) ...
2018/08/27 16:08:29.653039088 Using cached tibble.
2018/08/27 16:08:29.653259137       OK (symlinked cache)
2018/08/27 16:08:29.653455970 Installing networkD3 (0.4) ...
2018/08/27 16:08:29.669384584 Using cached networkD3.
2018/08/27 16:08:29.669580106       OK (symlinked cache)
2018/08/27 16:08:29.669769224 Installing dygraphs (1.1.1.6) ...
2018/08/27 16:08:29.690163266 Using cached dygraphs.
2018/08/27 16:08:29.690429883       OK (symlinked cache)
2018/08/27 16:08:29.690651231 Installing httpuv (1.4.3) ...
2018/08/27 16:08:29.725459950 Using cached httpuv.
2018/08/27 16:08:29.725657210       OK (symlinked cache)
2018/08/27 16:08:29.725859488 Installing ggplot2 (3.0.0) ...
2018/08/27 16:08:29.746750501 Using cached ggplot2.
2018/08/27 16:08:29.746976118       OK (symlinked cache)
2018/08/27 16:08:29.747239324 Installing purrr (0.2.4) ...
2018/08/27 16:08:29.767574765 Using cached purrr.
2018/08/27 16:08:29.767788670       OK (symlinked cache)
2018/08/27 16:08:29.767978667 Installing shiny (1.1.0) ...
2018/08/27 16:08:29.790444382 Using cached shiny.
2018/08/27 16:08:29.790688731       OK (symlinked cache)
2018/08/27 16:08:29.790895995 Installing tidyselect (0.2.4) ...
2018/08/27 16:08:29.810561626 Using cached tidyselect.
2018/08/27 16:08:29.810790046       OK (symlinked cache)
2018/08/27 16:08:29.810986162 Installing crosstalk (1.0.0) ...
2018/08/27 16:08:29.831930664 Using cached crosstalk.
2018/08/27 16:08:29.832127324       OK (symlinked cache)
2018/08/27 16:08:29.832345139 Installing shinyWidgets (0.4.3) ...
2018/08/27 16:08:29.851051886 Using cached shinyWidgets.
2018/08/27 16:08:29.851296169       OK (symlinked cache)
2018/08/27 16:08:29.851476083 Installing shinydashboard (0.7.0) ...
2018/08/27 16:08:29.865386040 Using cached shinydashboard.
2018/08/27 16:08:29.865662439       OK (symlinked cache)
2018/08/27 16:08:29.865815935 Installing dplyr (0.7.6) ...
2018/08/27 16:08:29.910924284 Using cached dplyr.
2018/08/27 16:08:29.911139822       OK (symlinked cache)
2018/08/27 16:08:29.911347972 Installing DT (0.4) ...
2018/08/27 16:08:29.926915696 Using cached DT.
2018/08/27 16:08:29.927119232       OK (symlinked cache)
2018/08/27 16:08:29.927354107 Installing tidyr (0.8.1) ...
2018/08/27 16:08:29.951606723 Using cached tidyr.
2018/08/27 16:08:29.951839342       OK (symlinked cache)
2018/08/27 16:08:29.952038558 Installing plotly (4.8.0) ...
2018/08/27 16:08:29.967814472 Using cached plotly.
2018/08/27 16:08:29.968018005       OK (symlinked cache)
2018/08/27 16:08:29.973546543 Warning message:
2018/08/27 16:08:29.973629834 In packrat::restore(overwrite.dirty = TRUE, prompt = FALSE, restart = FALSE) :
2018/08/27 16:08:29.973642041   The most recent snapshot was generated using R version 3.5.0
 
2018/08/27 16:08:33.995391467 Warning: namespace ‘DT’ is not available and has been replaced
2018/08/27 16:08:33.995526066 by .GlobalEnv when processing object ‘bchmark_format’
2018/08/27 16:08:33.996207228 Warning: namespace ‘plotly’ is not available and has been replaced
2018/08/27 16:08:33.996219811 by .GlobalEnv when processing object ‘p’
2018/08/27 16:08:34.214278793 Using Packrat dir /opt/rstudio-connect/mnt/app/packrat/lib/x86_64-redhat-linux-gnu/3.4.3
2018/08/27 16:08:34.221768896 Server version: 1.6.0-9
2018/08/27 16:08:34.221782291 LANG: en_US.UTF-8
2018/08/27 16:08:34.221842898 R version: 3.4.3
2018/08/27 16:08:34.221849871 shiny version: 1.1.0
2018/08/27 16:08:34.221866171 rmarkdown version: NA
2018/08/27 16:08:34.221869839 knitr version: 1.20
2018/08/27 16:08:34.221892041 jsonlite version: 1.5
2018/08/27 16:08:34.221896195 RJSONIO version: NA
2018/08/27 16:08:34.221914525 htmltools version: 0.3.6
2018/08/27 16:08:34.552165541 Using jsonlite for JSON processing
2018/08/27 16:08:34.727863570 Using Shiny bookmarking base directory /opt/rstudio-connect/mnt/bookmarks
2018/08/27 16:08:34.728109637
2018/08/27 16:08:34.728119383 Starting R with process ID: '9599'
2018/08/27 16:08:34.768409092
2018/08/27 16:08:34.768437162 Listening on http://127.0.0.1:37122
2018/08/27 16:08:35.082582848
2018/08/27 16:08:35.082604365 Attaching package: ‘shinydashboard’
2018/08/27 16:08:35.082673728
2018/08/27 16:08:35.083812716 The following object is masked from ‘package:graphics’:
2018/08/27 16:08:35.083819602
2018/08/27 16:08:35.083851139     box
2018/08/27 16:08:35.083853591
2018/08/27 16:08:35.146915574 Loading required package: ggplot2
2018/08/27 16:08:35.800188278
2018/08/27 16:08:35.800208110 Attaching package: ‘plotly’
2018/08/27 16:08:35.800320362
2018/08/27 16:08:35.800831468 The following object is masked from ‘package:ggplot2’:
2018/08/27 16:08:35.800855667
2018/08/27 16:08:35.800908962     last_plot
2018/08/27 16:08:35.800913409
2018/08/27 16:08:35.802027643 The following object is masked from ‘package:stats’:
2018/08/27 16:08:35.802033826
2018/08/27 16:08:35.802061582     filter
2018/08/27 16:08:35.802063577
2018/08/27 16:08:35.803099691 The following object is masked from ‘package:graphics’:
2018/08/27 16:08:35.803108490
2018/08/27 16:08:35.803145118     layout
2018/08/27 16:08:35.803147338
2018/08/27 16:08:38.407062679
2018/08/27 16:08:38.407083936 Attaching package: ‘plyr’
2018/08/27 16:08:38.407151915
2018/08/27 16:08:38.407425496 The following objects are masked from ‘package:plotly’:
2018/08/27 16:08:38.407435612
2018/08/27 16:08:38.407482834     arrange, mutate, rename, summarise
2018/08/27 16:08:38.407485986
2018/08/27 16:08:38.417543960
2018/08/27 16:08:38.417553114 Attaching package: ‘dplyr’
2018/08/27 16:08:38.417594425
2018/08/27 16:08:38.418215997 The following objects are masked from ‘package:plyr’:
2018/08/27 16:08:38.418244818
2018/08/27 16:08:38.418290598     arrange, count, desc, failwith, id, mutate, rename, summarise,
2018/08/27 16:08:38.418293700     summarize
2018/08/27 16:08:38.418317372
2018/08/27 16:08:38.420474251 The following objects are masked from ‘package:stats’:
2018/08/27 16:08:38.420486782
2018/08/27 16:08:38.420573812     filter, lag
2018/08/27 16:08:38.420577119
2018/08/27 16:08:38.422662123 The following objects are masked from ‘package:base’:
2018/08/27 16:08:38.422671885
2018/08/27 16:08:38.422712330     intersect, setdiff, setequal, union
2018/08/27 16:08:38.422714893
2018/08/27 16:08:38.451860394
2018/08/27 16:08:38.451881550 Attaching package: ‘zoo’
2018/08/27 16:08:38.451941710
2018/08/27 16:08:38.452535212 The following objects are masked from ‘package:base’:
2018/08/27 16:08:38.452548284
2018/08/27 16:08:38.452585955     as.Date, as.Date.numeric
2018/08/27 16:08:38.452588431
2018/08/27 16:08:38.454091126 Warning: Error in library: there is no package called ‘tidyverse’
2018/08/27 16:08:38.500468120   63: stop
2018/08/27 16:08:38.500492020   62: library
2018/08/27 16:08:38.500908895 Error in library(tidyverse) : there is no package called ‘tidyverse’

#4

Hi @sten, thanks for the logs. I think from here you should pursue these next steps:

  1. Review this Troubleshooting document (particularly the sections on packages) if you haven't already: https://support.rstudio.com/hc/en-us/articles/360001230774-Troubleshooting-Deployments-

  2. If the troubleshooting info doesn't help, consider submitting a support ticket so that we can get some information about your system. Here is an article that lists some of the information that the support team will want to know about your server: https://support.rstudio.com/hc/en-us/articles/360004788294-How-do-I-submit-a-Support-ticket-