简体   繁体   中英

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

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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM