"There is no package called X" error

102 views
Skip to first unread message

Eglantine Schmitt

unread,
Jun 17, 2017, 9:23:46 AM6/17/17
to shinyapps.io Users
Hi everybody,

I have browsed this group and other forums looking for a solution but did no find any.

I a getting a "there is no package called arules" error message (in French) when opening the app. See: https://eglantine.shinyapps.io/RTextAnalytics/ 

My Shiny app works on my computer(s) and is successfully deployed to shinyapps.io using rsconnect::deployApp()

The deployment USED to work several months ago. Might have been using the shinyapps library instead of rsconnect, and obviously there were some updates to R and some of the packages I use in the app.

I have updated rsconnect today using devtools::install_github('rstudio/rsconnect')

Both my ui.R and server.R begin with:
library(shiny)
library(arules)
library(arulesViz)
library(jsonlite)
library(plyr)
library(igraph)
library(httr)

Both those files are in UTF-8 (without BOM).

Here is my sessionInfo()
R version 3.3.3 (2017-03-06)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 16.04.2 LTS

locale:
 [1] LC_CTYPE=fr_FR.UTF-8       LC_NUMERIC=C               LC_TIME=fr_FR.UTF-8        LC_COLLATE=fr_FR.UTF-8    
 [5] LC_MONETARY=fr_FR.UTF-8    LC_MESSAGES=fr_FR.UTF-8    LC_PAPER=fr_FR.UTF-8       LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C             LC_MEASUREMENT=fr_FR.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] arules_1.5-2 Matrix_1.2-8

loaded via a namespace (and not attached):
 [1] lattice_0.20-34  packrat_0.4.8-1  digest_0.6.12    withr_1.0.2      bitops_1.0-6     grid_3.3.3       R6_2.2.0        
 [8] git2r_0.18.0     httr_1.2.1       curl_2.3         devtools_1.12.0  RevoUtils_10.0.3 RJSONIO_1.3-0    tools_3.3.3     
[15] RCurl_1.95-4.8   rsconnect_0.8.3  memoise_1.0.0   

And my rsconnect::appDependencies()
       package version source
1           R6   2.2.0   CRAN
2         Rcpp  0.12.9   CRAN
3       digest  0.6.12   CRAN
4    htmltools   0.3.5   CRAN
5       httpuv   1.3.3   CRAN
6     jsonlite     1.3   CRAN
7         mime     0.5   CRAN
8      packrat 0.4.8-1   CRAN
9        shiny   1.0.0   CRAN
10 sourcetools   0.1.5   CRAN
11      xtable   1.8-2   CRAN

As you can see, the library "arules" is missing in appDdependencies.

I am not copying the app code because it is several hundreds lines long but I can if you think this might help.

I have no idea how to solve this.

Thanks in advance for any leads,

Eglantine

PS : sorry for the erratic formatting, Google group interface doesn't seem to like me.

Joshua Spiewak

unread,
Jun 17, 2017, 9:56:51 AM6/17/17
to Eglantine Schmitt, shinyapps.io Users
How were the arules and arulesViz packages installed?

Are they available from CRAN? Could you try uninstalling and reinstalling them?

--
You received this message because you are subscribed to the Google Groups "shinyapps.io Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shinyapps-use...@googlegroups.com.
To post to this group, send email to shinyap...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shinyapps-users/5ff8b9d0-c3e4-4a8e-ae94-86df79334df3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Eglantine Schmitt

unread,
Jun 17, 2017, 10:17:23 AM6/17/17
to Joshua Spiewak, shinyapps.io Users
They are on CRAN et installed through install.packages()

I just tried uninstalling  (using remove.packages()) et reinstalling them.  I also cleared all objects from my workspace. My sessionInfo() looks a little different now.

Before running the app on my computer:

R version 3.3.3 (2017-03-06)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 16.04.2 LTS

locale:
 [1] LC_CTYPE=fr_FR.UTF-8       LC_NUMERIC=C               LC_TIME=fr_FR.UTF-8        LC_COLLATE=fr_FR.UTF-8    
 [5] LC_MONETARY=fr_FR.UTF-8    LC_MESSAGES=fr_FR.UTF-8    LC_PAPER=fr_FR.UTF-8       LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C             LC_MEASUREMENT=fr_FR.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

loaded via a namespace (and not attached):
[1] RevoUtils_10.0.3 rsconnect_0.8.3  tools_3.3.3      RCurl_1.95-4.8   RJSONIO_1.3-0    digest_0.6.12    packrat_0.4.8-1 
[8] bitops_1.0-6    

And after running the app on my computer:

R version 3.3.3 (2017-03-06)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 16.04.2 LTS

locale:
 [1] LC_CTYPE=fr_FR.UTF-8       LC_NUMERIC=C               LC_TIME=fr_FR.UTF-8        LC_COLLATE=fr_FR.UTF-8    
 [5] LC_MONETARY=fr_FR.UTF-8    LC_MESSAGES=fr_FR.UTF-8    LC_PAPER=fr_FR.UTF-8       LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C             LC_MEASUREMENT=fr_FR.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
[1] grid      stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] httr_1.2.1      igraph_1.0.1    plyr_1.8.4      jsonlite_1.3    arulesViz_1.2-1 arules_1.5-2    Matrix_1.2-8    shiny_1.0.0    

loaded via a namespace (and not attached):
 [1] mclust_5.2.3         Rcpp_0.12.9          vcd_1.4-3            mvtnorm_1.0-6        lattice_0.20-34      tidyr_0.6.1         
 [7] class_7.3-14         zoo_1.7-14           gtools_3.5.0         assertthat_0.1       digest_0.6.12        packrat_0.4.8-1     
[13] lmtest_0.9-35        foreach_1.4.3        mime_0.5             R6_2.2.0             stats4_3.3.3         ggplot2_2.2.1       
[19] gplots_3.0.1         curl_2.3             lazyeval_0.2.0       diptest_0.75-7       gdata_2.17.0         whisker_0.3-2       
[25] kernlab_0.9-25       DT_0.2               RevoUtils_10.0.3     htmlwidgets_0.8      RCurl_1.95-4.8       munsell_0.4.3       
[31] httpuv_1.3.3         base64enc_0.1-3      htmltools_0.3.5      nnet_7.3-12          tibble_1.2           gridExtra_2.2.1     
[37] seriation_1.2-1      codetools_0.2-15     dendextend_1.4.0     viridisLite_0.1.3    dplyr_0.5.0          MASS_7.3-45         
[43] bitops_1.0-6         DBI_0.6              xtable_1.8-2         gtable_0.2.0         registry_0.3         magrittr_1.5        
[49] scales_0.4.1         KernSmooth_2.23-15   viridis_0.3.4        scatterplot3d_0.3-38 flexmix_2.3-13       robustbase_0.92-7   
[55] iterators_1.0.8      tools_3.3.3          RJSONIO_1.3-0        fpc_2.1-10           purrr_0.2.2          trimcluster_0.1-2   
[61] DEoptimR_1.0-8       gclus_1.3.1          rsconnect_0.8.3      colorspace_1.3-2     cluster_2.0.5        caTools_1.17.1      
[67] prabclus_2.2-6       TSP_1.1-5            plotly_4.5.6         modeltools_0.2-21  

No changes on rsconnect::appDependencies().

You received this message because you are subscribed to a topic in the Google Groups "shinyapps.io Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/shinyapps-users/lPhAkFnzSgs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to shinyapps-use...@googlegroups.com.

To post to this group, send email to shinyap...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages