> install.packages("ggplot2")
Installing package into ‘C:/Users/*/Documents/R/win-library/3.2’
(as ‘lib’ is unspecified)
also installing the dependency ‘scales’
有二进制版本的,但源代码版本是后来的:
binary source needs_compilation
scales 0.2.4 0.2.5 FALSE
试开URL’http://mirrors.ustc.edu.cn/CRAN/bin/windows/contrib/3.2/ggplot2_1.0.1.zip'
Content type 'application/zip' length 2677897 bytes (2.6 MB)
downloaded 2.6 MB
程序包‘ggplot2’打开成功,MD5和检查也通过
下载的二进制程序包在
C:Users*AppDataLocalTempRtmpgFeANPdownloaded_packages里
installing the source package ‘scales’
试开URL’http://mirrors.ustc.edu.cn/CRAN/src/contrib/scales_0.2.5.tar.gz'
Content type 'application/gzip' length 56346 bytes (55 KB)
downloaded 55 KB
* installing *source* package 'scales' ...
** 成功将'scales'程序包解包并MD5和检查
** libs
Warning: 运行命令'make -f "C:/PROGRA~1/R/R-32~1.0/etc/x64/Makeconf" -f "C:/PROGRA~1/R/R-32~1.0/share/make/winshlib.mk" SHLIB_LDFLAGS='$(SHLIB_CXXLDFLAGS)' SHLIB_LD='$(SHLIB_CXXLD)' SHLIB="scales.dll" WIN=64 TCLBIN=64 OBJECTS="RcppExports.o colors.o"'的状态是127
ERROR: compilation failed for package 'scales'
* removing 'C:/Users/*/Documents/R/win-library/3.2/scales'
下载的程序包在
‘C:Users*AppDataLocalTempRtmpgFeANPdownloaded_packages’里
Warning messages:
1: 运行命令'"C:/PROGRA~1/R/R-32~1.0/bin/x64/R" CMD INSTALL -l "C:Users*DocumentsRwin-library3.2" C:UsersCELEST~1AppDataLocalTempRtmpgFeANP/downloaded_packages/scales_0.2.5.tar.gz'的状态是1
2: In install.packages("ggplot2") : 安装程序包‘scales’时退出狀態的值不是0
这是由于scales无法下载的缘故
可以用install.packages("ggplot2", repos = "http://cran.r-project.org")来解决