Cannot install the shiny package in R

2019-08-22 00:34发布

问题:

I am trying to install the shiny package in R but I keep getting this error:

ERROR: dependencies 'later', 'promises', 'rlang' are not available for 
package 'shiny'
* removing 'C:/Users/sawyer.keels/Documents/R/win-library/3.2/shiny'

The downloaded source packages are in

‘C:\Users\sawyer.keels\AppData\Local\Temp\RtmpuWfNw6\downloaded_packages’
Warning messages:
1: running command '"C:/PROGRA~1/R/R-32~1.4RE/bin/x64/R" CMD INSTALL -l "C:\Users\sawyer.keels\Documents\R\win-library\3.2" C:\Users\SAWYER~1.KEE\AppData\Local\Temp\RtmpuWfNw6/downloaded_packages/shiny_1.1.0.tar.gz' had status 1 
2: In install.packages("shiny") :
  installation of package ‘shiny’ had non-zero exit status

If anyone has had this issue in the past I would appreciate the help. Thanks

回答1:

Try installing the dependency packages:

install.packages(c("later","promises","rlang"))

After thereafter try to install shiny again:

install.packages(c("shiny"))

Let me know if it works.