我新增了linux mint 18.3作为操作系统和Windows 10一起我已经尝试在R studio上安装R库我成功安装了ggplot2,Shiny,formattable和其他软件包然而我无法安装C50和networkD3例如我试过直接从Cran存储库和下载的存档中安装它们但是没有成功,尽管我尝试了我在网站上找到的所有建议,这是我得到的:
Installing package into ‘/home/ali/R/x86_64-pc-linux-gnu-library/3.2’
(as ‘lib’ is unspecified)
Warning in install.packages :
dependencies ‘libcoin’, ‘inum’ are not available
also installing the dependency ‘partykit’
--2018-10-16 18:31:56-- https://cran.rstudio.com/src/contrib/partykit_1.2-2.tar.gz
Resolving cran.rstudio.com (cran.rstudio.com)... 52.85.224.117, 52.85.224.92, 52.85.224.156, ...
Connecting to cran.rstudio.com (cran.rstudio.com)|52.85.224.117|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1246865 (1.2M) [application/x-gzip]
Saving to: ‘/tmp/RtmpnoeQlL/downloaded_packages/partykit_1.2-2.tar.gz’
0K .......... .......... .......... .......... .......... 4% 469K 2s
50K .......... .......... .......... .......... .......... 8% 563K 2s
100K .......... .......... .......... .......... .......... 12% 400K 2s
150K .......... .......... .......... .......... .......... 16% 177K 3s
200K .......... .......... .......... .......... .......... 20% 834K 3s
250K .......... .......... .......... .......... .......... 24% 385K 2s
300K .......... .......... .......... .......... .......... 28% 744K 2s
350K .......... .......... .......... .......... .......... 32% 432K 2s
400K .......... .......... .......... .......... .......... 36% 844K 2s
450K .......... .......... .......... .......... .......... 41% 432K 2s
500K .......... .......... .......... .......... .......... 45% 408K 2s
550K .......... .......... .......... .......... .......... 49% 714K 1s
600K .......... .......... .......... .......... .......... 53% 182K 1s
650K .......... .......... .......... .......... .......... 57% 231K 1s
700K .......... .......... .......... .......... .......... 61% 996K 1s
750K .......... .......... .......... .......... .......... 65% 196K 1s
800K .......... .......... .......... .......... .......... 69% 305K 1s
850K .......... .......... .......... .......... .......... 73% 388K 1s
900K .......... .......... .......... .......... .......... 78% 131K 1s
950K .......... .......... .......... .......... .......... 82% 2.70M 1s
1000K .......... .......... .......... .......... .......... 86% 226K 0s
1050K .......... .......... .......... .......... .......... 90% 510K 0s
1100K .......... .......... .......... .......... .......... 94% 352K 0s
1150K .......... .......... .......... .......... .......... 98% 263K 0s
1200K .......... ....... 100% 2.97M=3.5s
2018-10-16 18:32:00 (349 KB/s) - ‘/tmp/RtmpnoeQlL/downloaded_packages/partykit_1.2-2.tar.gz’ saved [1246865/1246865]
--2018-10-16 18:32:00-- https://cran.rstudio.com/src/contrib/C50_0.1.2.tar.gz
Resolving cran.rstudio.com (cran.rstudio.com)... 52.85.224.101, 52.85.224.117, 52.85.224.92, ...
Connecting to cran.rstudio.com (cran.rstudio.com)|52.85.224.101|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 418240 (408K) [application/x-gzip]
Saving to: ‘/tmp/RtmpnoeQlL/downloaded_packages/C50_0.1.2.tar.gz’
0K .......... .......... .......... .......... .......... 12% 568K 1s
50K .......... .......... .......... .......... .......... 24% 485K 1s
100K .......... .......... .......... .......... .......... 36% 452K 1s
150K .......... .......... .......... .......... .......... 48% 152K 1s
200K .......... .......... .......... .......... .......... 61% 324K 0s
250K .......... .......... .......... .......... .......... 73% 1.63M 0s
300K .......... .......... .......... .......... .......... 85% 336K 0s
350K .......... .......... .......... .......... .......... 97% 296K 0s
400K ........ 100% 60.7M=1.1s
2018-10-16 18:32:02 (361 KB/s) - ‘/tmp/RtmpnoeQlL/downloaded_packages/C50_0.1.2.tar.gz’ saved [418240/418240]
ERROR: dependencies ‘libcoin’, ‘inum’ are not available for package ‘partykit’
* removing ‘/home/ali/R/x86_64-pc-linux-gnu-library/3.2/partykit’
Warning in install.packages :
installation of package ‘partykit’ had non-zero exit status
ERROR: dependency ‘partykit’ is not available for package ‘C50’
* removing ‘/home/ali/R/x86_64-pc-linux-gnu-library/3.2/C50’
Warning in install.packages :
installation of package ‘C50’ had non-zero exit status
The downloaded source packages are in
‘/tmp/RtmpnoeQlL/downloaded_packages’
我也得到了同样的错误,我搜索了这个,这是一个与保存和安装安装文件的地址相关的问题。我成功地使其成为像'ggplot2'这样的库的功能,但我仍然使用C50和network3D:
ERROR: dependencies ‘libcoin’, ‘inum’ are not available for package ‘partykit’
* removing ‘/home/ali/R/x86_64-pc-linux-gnu-library/3.2/partykit’
Warning in install.packages :
installation of package ‘partykit’ had non-zero exit status
ERROR: dependency ‘partykit’ is not available for package ‘C50’
* removing ‘/home/ali/R/x86_64-pc-linux-gnu-library/3.2/C50’
Warning in install.packages :
installation of package ‘C50’ had non-zero exit status
您可以尝试从cran下载软件包,然后从下载的文件中安装它。它可能适合你!