Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/r/83.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
安装R的问题_R_Shiny - Fatal编程技术网

安装R的问题

安装R的问题,r,shiny,R,Shiny,我使用的是RStudio的1.1.453版。尝试使用以下代码安装R Shining时,我收到一个错误(注意:我尝试了几个不同的镜像) 这是我收到的错误信息。知道发生了什么吗 Installing package into ‘C:/Users/NHK/Documents/R/win-library/3.2’ (as ‘lib’ is unspecified) also installing the dependencies ‘httpuv’, ‘later’, ‘promises’, ‘rlang

我使用的是RStudio的1.1.453版。尝试使用以下代码安装R Shining时,我收到一个错误(注意:我尝试了几个不同的镜像)

这是我收到的错误信息。知道发生了什么吗

Installing package into ‘C:/Users/NHK/Documents/R/win-library/3.2’
(as ‘lib’ is unspecified)
also installing the dependencies ‘httpuv’, ‘later’, ‘promises’, ‘rlang’


There are binary versions available but the source versions are later:
   binary  source needs_compilation
httpuv  1.3.3 1.4.4.1              TRUE
shiny   1.0.2   1.1.0             FALSE

Binaries will be installed
Packages which are only available in source form, and may need compilation of 
C/C++/Fortran: ‘later’ ‘promises’ ‘rlang’
 These will not be installed
trying URL 

'http://nbcgib.uesc.br/mirrors/cran/bin/windows/contrib/3.2/httpuv_1.3.3.zip'
Content type 'application/zip' length 872756 bytes (852 KB)
 downloaded 852 KB

 package ‘httpuv’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
C:\Users\NHK\AppData\Local\Temp\RtmpCqqSmI\downloaded_packages
installing the source package ‘shiny’

trying URL 'http://nbcgib.uesc.br/mirrors/cran/src/contrib/shiny_1.1.0.tar.gz'
Content type 'application/x-gzip' length 2350156 bytes (2.2 MB)
downloaded 2.2 MB

ERROR: dependencies 'later', 'promises', 'rlang' are not available for package 'shiny'
* removing 'C:/Users/NHK/Documents/R/win-library/3.2/shiny'
Warning in install.packages :
 running command '"C:/PROGRA~1/R/R-32~1.2/bin/x64/R" CMD INSTALL -l 
"C:\Users\NHK\Documents\R\win-library\3.2"
  C:\Users\N~1\AppData\Local\Temp\RtmpCqqSmI/downloaded_packages/shiny_1.1.0.
 tar.gz' had status 1

Warning in install.packages :
  installation of package ‘shiny’ had non-zero exit status

The downloaded source packages are in
    ‘C:\Users\NHK\AppData\Local\Temp\RtmpCqqSmI\downloaded_packages’

尝试一下,因为回购协议R3.2已经很旧了。我会尝试更新R或使用MRAN提供的旧CRAN快照,以避免获得与您的R版本不兼容的最新包。第一种方法是我的首选。我已经回答了相同的问题。希望能有帮助。
Installing package into ‘C:/Users/NHK/Documents/R/win-library/3.2’
(as ‘lib’ is unspecified)
also installing the dependencies ‘httpuv’, ‘later’, ‘promises’, ‘rlang’


There are binary versions available but the source versions are later:
   binary  source needs_compilation
httpuv  1.3.3 1.4.4.1              TRUE
shiny   1.0.2   1.1.0             FALSE

Binaries will be installed
Packages which are only available in source form, and may need compilation of 
C/C++/Fortran: ‘later’ ‘promises’ ‘rlang’
 These will not be installed
trying URL 

'http://nbcgib.uesc.br/mirrors/cran/bin/windows/contrib/3.2/httpuv_1.3.3.zip'
Content type 'application/zip' length 872756 bytes (852 KB)
 downloaded 852 KB

 package ‘httpuv’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
C:\Users\NHK\AppData\Local\Temp\RtmpCqqSmI\downloaded_packages
installing the source package ‘shiny’

trying URL 'http://nbcgib.uesc.br/mirrors/cran/src/contrib/shiny_1.1.0.tar.gz'
Content type 'application/x-gzip' length 2350156 bytes (2.2 MB)
downloaded 2.2 MB

ERROR: dependencies 'later', 'promises', 'rlang' are not available for package 'shiny'
* removing 'C:/Users/NHK/Documents/R/win-library/3.2/shiny'
Warning in install.packages :
 running command '"C:/PROGRA~1/R/R-32~1.2/bin/x64/R" CMD INSTALL -l 
"C:\Users\NHK\Documents\R\win-library\3.2"
  C:\Users\N~1\AppData\Local\Temp\RtmpCqqSmI/downloaded_packages/shiny_1.1.0.
 tar.gz' had status 1

Warning in install.packages :
  installation of package ‘shiny’ had non-zero exit status

The downloaded source packages are in
    ‘C:\Users\NHK\AppData\Local\Temp\RtmpCqqSmI\downloaded_packages’