rahul yadav
rahul yadav

Reputation: 432

Not able to deploy shiny app in rstudio server

I was trying to run a shiny app in RStudio but everytime i tried to run the document it refuses to run it saying

error in library(shiny) : there is no package called ‘shiny’

This happens also after i installed the shiny app.

    Installing package into ‘/home/mrshekar/R/x86_64-pc-linux-gnu-library/3.4’
(as ‘lib’ is unspecified)
trying URL 'https://cloud.r-project.org/src/contrib/shiny_1.1.0.tar.gz'
Content type 'application/x-gzip' length 2350156 bytes (2.2 MB)
==================================================
downloaded 2.2 MB

* installing *source* package ‘shiny’ ...
** package ‘shiny’ successfully unpacked and MD5 sums checked
** R
** inst
** preparing package for lazy loading
Error in library.dynam(lib, package, package.lib) : 
  shared object ‘httpuv.so’ not found
ERROR: lazy loading failed for package ‘shiny’
* removing ‘/home/mrshekar/R/x86_64-pc-linux-gnu-library/3.4/shiny’
Warning in install.packages :
  installation of package ‘shiny’ had non-zero exit status

The downloaded source packages are in
    ‘/tmp/RtmpjZEHLD/downloaded_packages’

Something similar happens when i try to deploy the shiny web app in the server. It says

Download the Shiny app now?

Everytime i start a new app eve after i have installed the packages. Please help. Thanks

Upvotes: 1

Views: 908

Answers (2)

rahul yadav
rahul yadav

Reputation: 432

The answer in Can't install ggplot2 at debian 7.6 in R works. But after you do that manually enter all the packages you want to install in it

Upvotes: 2

Orhan Yazar
Orhan Yazar

Reputation: 909

It already happened to me. I don't know why, but R was not able to install shiny. So the thing i did is to install it manually. I mean, just download the package from here: https://cran.r-project.org/web/packages/shiny/index.html and paste the shiny folder in C:\Users\your_username\Documents\R\win-library\3.3. If it doesn't work, just install the dependencies.

Upvotes: 1

Related Questions