"ERROR: lazy loading failed for package tm" while deploying shiny app which includes tm and slam packages

shiny
shinydashboard
shinyappsio

#1

Hi,
I am trying to deploy a shiny app which includes several packages like tm, slam, NLP etc.

The app is working perfectly fine locally and all the libraries are loading properly. But when I am trying to deploy it goes like this -

building: Building package: tm
.....it tries to install lot of packages...and then finally gives these errors -

Error in dyn.load(file, DLLpath = DLLpath, ...) : 
  unable to load shared object '/opt/R/3.4.0/lib/R/library/slam/libs/slam.so':
  libRblas.so: cannot open shared object file: No such file or directory
ERROR: lazy loading failed for package �tm�
* removing �/opt/R/3.4.0/lib/R/library/tm�
################################# End Task Log ################################# 
Error: Unhandled Exception: Child Task 557501152 failed: Error building image: Error building tm (0.7-5). Build exited with non-zero status: 1
Execution halted

I have R version of 3.4.0. I know there's some problem with tm and/or slam package installation. Please guide me in resolving this. Thanks.


#2

This sort of error has occurred in the past when there was a badly cached package. I have purged slam built for R 3.4.0, so please try again.


#3

Worked like a charm. Thank you. :smile:
Could you elaborate on what exactly you did.

Also, please find my latest App here and leave your feedback :slight_smile:
https://muralimohanakrishna.shinyapps.io/Twitter_Talks_Shiny_Sparks/


#4

We cache compiled packages. There was a corrupt entry in the cache that I removed.