1、首先从github上下载R包,如ggord
下载后获得ggord-master.zip文件
2、将文件解压后获得ggord-master文件
3、输入代码安装
install.packages(“E:/Users/Administrator/Desktop/ggord-master”,repos=NULL,type=“source”)
- installing source package ‘ggord’ …
** using staged installation
** R
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
converting help for package ‘ggord’
finding HTML links … 好了
ggord html
** building package indices
** testing if installed package can be loaded from temporary location
*** arch - i386
*** arch - x64
** testing if installed package can be loaded from final location
*** arch - i386
*** arch - x64
** testing if installed package keeps a record of temporary installation path - DONE (ggord)
library(ggord)