library(usethis)
library(devtools)
install_github('vqv/ggbiplot')
Downloading GitHub repo vqv/ggbiplot@HEAD
These packages have more recent versions available.
It is recommended to update all of them.
Which would you like to update?
1: All
2: CRAN packages only
3: None
4: cli (3.4.0 -> 3.4.1) [CRAN]
Enter one or more numbers, or an empty line to skip updates: 3
Error: Failed to install 'ggbiplot' from GitHub:
! Native call to `processx_exec` failed
Caused by error in `chain_call(c_processx_exec, command, c(command, args), pty, pty_options, …`:
! setup stdio for 'C:/PROGRA~1/R/R-42~1.2/bin/x64/Rcmd.exe' (system error 2, 系统找不到指定的文件。
) @win/processx.c:964 (processx_exec)
Enter one or more numbers, or an empty line to skip updates: 1
cli (3.4.0 -> 3.4.1) [CRAN]
Installing 1 packages: cli
将程序包安装入‘C:/Users/Lenovo/AppData/Local/R/win-library/4.2’
(因为‘lib’没有被指定)
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.2/cli_3.4.1.zip'
Content type 'application/zip' length 1258293 bytes (1.2 MB)
downloaded 1.2 MB
程序包‘cli’打开成功,MD5和检查也通过
Warning: 无法将拆除原来安装的程序包‘cli’
Warning: 回复了‘cli’
下载的二进制程序包在
C:\Users\Lenovo\AppData\Local\Temp\RtmpO6lIXo\downloaded_packages里
Error: Failed to install 'ggbiplot' from GitHub:
! Native call to `processx_exec` failed
Caused by error in `chain_call(c_processx_exec, command, c(command, args), pty, pty_options, …`:
! setup stdio for 'C:/PROGRA~1/R/R-42~1.2/bin/x64/Rcmd.exe' (system error 2, 系统找不到指定的文件。
) @win/processx.c:964 (processx_exec)
In addition: Warning message:
In file.copy(savedcopy, lib, recursive = TRUE) :
problem copying C:\Users\Lenovo\AppData\Local\R\win-library\4.2\00LOCK\cli\libs\x64\cli.dll to C:\User
s\Lenovo\AppData\Local\R\win-library\4.2\cli\libs\x64\cli.dll: Permission denied
安装测试如下:
> utils:::menuInstallPkgs()
--- 在此連線階段时请选用CRAN的鏡子 ---
还安装相依关系‘credentials’, ‘openssl’, ‘zip’, ‘gitcreds’, ‘ini’, ‘desc’, ‘gert’, ‘gh’, ‘whisker’
试开URL’https://mirrors.ustc.edu.cn/CRAN/bin/windows/contrib/4.2/credentials_1.3.2.zip'
Content type 'application/zip' length 173914 bytes (169 KB)
downloaded 169 KB
试开URL’https://mirrors.ustc.edu.cn/CRAN/bin/windows/contrib/4.2/openssl_2.0.4.zip'
Content type 'application/zip' length 2652988 bytes (2.5 MB)
downloaded 2.5 MB
试开URL’https://mirrors.ustc.edu.cn/CRAN/bin/windows/contrib/4.2/zip_2.2.2.zip'
Content type 'application/zip' length 417964 bytes (408 KB)
downloaded 408 KB
试开URL’https://mirrors.ustc.edu.cn/CRAN/bin/windows/contrib/4.2/gitcreds_0.1.2.zip'
Content type 'application/zip' length 98881 bytes (96 KB)
downloaded 96 KB
试开URL’https://mirrors.ustc.edu.cn/CRAN/bin/windows/contrib/4.2/ini_0.3.1.zip'
Content type 'application/zip' length 15797 bytes (15 KB)
downloaded 15 KB
试开URL’https://mirrors.ustc.edu.cn/CRAN/bin/windows/contrib/4.2/desc_1.4.2.zip'
Content type 'application/zip' length 326923 bytes (319 KB)
downloaded 319 KB
试开URL’https://mirrors.ustc.edu.cn/CRAN/bin/windows/contrib/4.2/gert_1.9.1.zip'
Content type 'application/zip' length 2714315 bytes (2.6 MB)
downloaded 2.6 MB
试开URL’https://mirrors.ustc.edu.cn/CRAN/bin/windows/contrib/4.2/gh_1.3.1.zip'
Content type 'application/zip' length 98264 bytes (95 KB)
downloaded 95 KB
试开URL’https://mirrors.ustc.edu.cn/CRAN/bin/windows/contrib/4.2/whisker_0.4.zip'
Content type 'application/zip' length 83334 bytes (81 KB)
downloaded 81 KB
试开URL’https://mirrors.ustc.edu.cn/CRAN/bin/windows/contrib/4.2/usethis_2.1.6.zip'
Content type 'application/zip' length 818598 bytes (799 KB)
downloaded 799 KB
程序包‘credentials’打开成功,MD5和检查也通过
程序包‘openssl’打开成功,MD5和检查也通过
程序包‘zip’打开成功,MD5和检查也通过
程序包‘gitcreds’打开成功,MD5和检查也通过
程序包‘ini’打开成功,MD5和检查也通过
程序包‘desc’打开成功,MD5和检查也通过
程序包‘gert’打开成功,MD5和检查也通过
程序包‘gh’打开成功,MD5和检查也通过
程序包‘whisker’打开成功,MD5和检查也通过
程序包‘usethis’打开成功,MD5和检查也通过
下载的二进制程序包在
Z:\TEMP\Rtmp4EKYb8\downloaded_packages里
> utils:::menuInstallPkgs()
> utils:::menuInstallPkgs()
试开URL’https://mirrors.ustc.edu.cn/CRAN/bin/windows/contrib/4.2/usethis_2.1.6.zip'
Content type 'application/zip' length 818598 bytes (799 KB)
downloaded 799 KB
程序包‘usethis’打开成功,MD5和检查也通过
下载的二进制程序包在
Z:\TEMP\Rtmp4EKYb8\downloaded_packages里
2、安装devtools
> utils:::menuInstallPkgs()
还安装相依关系‘systemfonts’, ‘textshaping’, ‘diffobj’, ‘downlit’, ‘ragg’, ‘xopen’, ‘brew’, ‘brio’, ‘cli’, ‘praise’, ‘waldo’, ‘miniUI’, ‘pkgbuild’, ‘pkgdown’, ‘pkgload’, ‘profvis’, ‘rcmdcheck’, ‘remotes’, ‘roxygen2’, ‘rversions’, ‘sessioninfo’, ‘testthat’, ‘urlchecker’
有二进制版本的,但源代码版本是后来的:
binary source needs_compilation
pkgload 1.3.0 1.3.1 FALSE
试开URL’https://mirrors.ustc.edu.cn/CRAN/bin/windows/contrib/4.2/systemfonts_1.0.4.zip'
Content type 'application/zip' length 1042945 bytes (1018 KB)
downloaded 1018 KB
试开URL’https://mirrors.ustc.edu.cn/CRAN/bin/windows/contrib/4.2/textshaping_0.3.6.zip'
Content type 'application/zip' length 1021255 bytes (997 KB)
downloaded 997 KB
试开URL’https://mirrors.ustc.edu.cn/CRAN/bin/windows/contrib/4.2/diffobj_0.3.5.zip'
Content type 'application/zip' length 990328 bytes (967 KB)
downloaded 967 KB
试开URL’https://mirrors.ustc.edu.cn/CRAN/bin/windows/contrib/4.2/downlit_0.4.2.zip'
Content type 'application/zip' length 113549 bytes (110 KB)
downloaded 110 KB
试开URL’https://mirrors.ustc.edu.cn/CRAN/bin/windows/contrib/4.2/ragg_1.2.4.zip'
Content type 'application/zip' length 1298631 bytes (1.2 MB)
downloaded 1.2 MB
试开URL’https://mirrors.ustc.edu.cn/CRAN/bin/windows/contrib/4.2/xopen_1.0.0.zip'
Content type 'application/zip' length 24825 bytes (24 KB)
downloaded 24 KB
试开URL’https://mirrors.ustc.edu.cn/CRAN/bin/windows/contrib/4.2/brew_1.0-8.zip'
Content type 'application/zip' length 78740 bytes (76 KB)
downloaded 76 KB
试开URL’https://mirrors.ustc.edu.cn/CRAN/bin/windows/contrib/4.2/brio_1.1.3.zip'
Content type 'application/zip' length 38373 bytes (37 KB)
downloaded 37 KB
试开URL’https://mirrors.ustc.edu.cn/CRAN/bin/windows/contrib/4.2/cli_3.4.1.zip'
Content type 'application/zip' length 1258293 bytes (1.2 MB)
downloaded 1.2 MB
试开URL’https://mirrors.ustc.edu.cn/CRAN/bin/windows/contrib/4.2/praise_1.0.0.zip'
Content type 'application/zip' length 19844 bytes (19 KB)
downloaded 19 KB
试开URL’https://mirrors.ustc.edu.cn/CRAN/bin/windows/contrib/4.2/waldo_0.4.0.zip'
Content type 'application/zip' length 101961 bytes (99 KB)
downloaded 99 KB
试开URL’https://mirrors.ustc.edu.cn/CRAN/bin/windows/contrib/4.2/miniUI_0.1.1.1.zip'
Content type 'application/zip' length 36764 bytes (35 KB)
downloaded 35 KB
试开URL’https://mirrors.ustc.edu.cn/CRAN/bin/windows/contrib/4.2/pkgbuild_1.3.1.zip'
Content type 'application/zip' length 147679 bytes (144 KB)
downloaded 144 KB
试开URL’https://mirrors.ustc.edu.cn/CRAN/bin/windows/contrib/4.2/pkgdown_2.0.6.zip'
Content type 'application/zip' length 800311 bytes (781 KB)
downloaded 781 KB
试开URL’https://mirrors.ustc.edu.cn/CRAN/bin/windows/contrib/4.2/profvis_0.3.7.zip'
Content type 'application/zip' length 186240 bytes (181 KB)
downloaded 181 KB
试开URL’https://mirrors.ustc.edu.cn/CRAN/bin/windows/contrib/4.2/rcmdcheck_1.4.0.zip'
Content type 'application/zip' length 170633 bytes (166 KB)
downloaded 166 KB
试开URL’https://mirrors.ustc.edu.cn/CRAN/bin/windows/contrib/4.2/remotes_2.4.2.zip'
Content type 'application/zip' length 399050 bytes (389 KB)
downloaded 389 KB
试开URL’https://mirrors.ustc.edu.cn/CRAN/bin/windows/contrib/4.2/roxygen2_7.2.1.zip'
Content type 'application/zip' length 1056715 bytes (1.0 MB)
downloaded 1.0 MB
试开URL’https://mirrors.ustc.edu.cn/CRAN/bin/windows/contrib/4.2/rversions_2.1.2.zip'
Content type 'application/zip' length 67478 bytes (65 KB)
downloaded 65 KB
试开URL’https://mirrors.ustc.edu.cn/CRAN/bin/windows/contrib/4.2/sessioninfo_1.2.2.zip'
Content type 'application/zip' length 186243 bytes (181 KB)
downloaded 181 KB
试开URL’https://mirrors.ustc.edu.cn/CRAN/bin/windows/contrib/4.2/testthat_3.1.5.zip'
Content type 'application/zip' length 2107209 bytes (2.0 MB)
downloaded 2.0 MB
试开URL’https://mirrors.ustc.edu.cn/CRAN/bin/windows/contrib/4.2/urlchecker_1.0.1.zip'
Content type 'application/zip' length 36288 bytes (35 KB)
downloaded 35 KB
试开URL’https://mirrors.ustc.edu.cn/CRAN/bin/windows/contrib/4.2/devtools_2.4.5.zip'
Content type 'application/zip' length 428969 bytes (418 KB)
downloaded 418 KB
程序包‘systemfonts’打开成功,MD5和检查也通过
程序包‘textshaping’打开成功,MD5和检查也通过
程序包‘diffobj’打开成功,MD5和检查也通过
程序包‘downlit’打开成功,MD5和检查也通过
程序包‘ragg’打开成功,MD5和检查也通过
程序包‘xopen’打开成功,MD5和检查也通过
程序包‘brew’打开成功,MD5和检查也通过
程序包‘brio’打开成功,MD5和检查也通过
程序包‘cli’打开成功,MD5和检查也通过
程序包‘praise’打开成功,MD5和检查也通过
程序包‘waldo’打开成功,MD5和检查也通过
程序包‘miniUI’打开成功,MD5和检查也通过
程序包‘pkgbuild’打开成功,MD5和检查也通过
程序包‘pkgdown’打开成功,MD5和检查也通过
程序包‘profvis’打开成功,MD5和检查也通过
程序包‘rcmdcheck’打开成功,MD5和检查也通过
程序包‘remotes’打开成功,MD5和检查也通过
程序包‘roxygen2’打开成功,MD5和检查也通过
程序包‘rversions’打开成功,MD5和检查也通过
程序包‘sessioninfo’打开成功,MD5和检查也通过
程序包‘testthat’打开成功,MD5和检查也通过
程序包‘urlchecker’打开成功,MD5和检查也通过
程序包‘devtools’打开成功,MD5和检查也通过
下载的二进制程序包在
Z:\TEMP\Rtmp4EKYb8\downloaded_packages里
安装源码包‘pkgload’
试开URL’https://mirrors.ustc.edu.cn/CRAN/src/contrib/pkgload_1.3.1.tar.gz'
Content type 'application/octet-stream' length 76689 bytes (74 KB)
downloaded 74 KB
* installing *source* package 'pkgload' ...
** 成功将'pkgload'程序包解包并MD5和检查
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded from temporary location
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (pkgload)
下载的程序包在
‘Z:\TEMP\Rtmp4EKYb8\downloaded_packages’里
>
3、安装源‘ggplot2’
```bash
library(usethis)
library(devtools)
install_github('vqv/ggbiplot')
> library(devtools)
载入需要的程辑包:usethis
Warning messages:
1: 程辑包‘devtools’是用R版本4.2.2 来建造的
2: 程辑包‘usethis’是用R版本4.2.2 来建造的
> install_github("vqv/ggbiplot")
WARNING: Rtools is required to build R packages, but is not currently installed.
Please download and install Rtools 4.2 from https://cran.r-project.org/bin/windows/Rtools/ or https://www.r-project.org/nosvn/winutf8/ucrt3/.
Downloading GitHub repo vqv/ggbiplot@HEAD
These packages have more recent versions available.
It is recommended to update all of them.
Which would you like to update?
1: All
2: CRAN packages only
3: None
4: rlang (1.0.4 -> 1.0.6) [CRAN]
5: lifecycle (1.0.1 -> 1.0.3) [CRAN]
6: vctrs (0.4.1 -> 0.5.0) [CRAN]
7: isoband (0.2.5 -> 0.2.6) [CRAN]
8: gtable (0.3.0 -> 0.3.1) [CRAN]
9: ggplot2 (3.3.6 -> 3.4.0) [CRAN]
Enter one or more numbers, or an empty line to skip updates: 9
plyr (NA -> 1.8.7) [CRAN]
ggplot2 (3.3.6 -> 3.4.0) [CRAN]
Installing 2 packages: plyr, ggplot2
还安装相依关系‘lifecycle’, ‘rlang’, ‘vctrs’
有二进制版本的,但源代码版本是后来的:
binary source needs_compilation
ggplot2 3.3.6 3.4.0 FALSE
试开URL’https://mirrors.ustc.edu.cn/CRAN/bin/windows/contrib/4.2/lifecycle_1.0.3.zip'
Content type 'application/zip' length 139001 bytes (135 KB)
downloaded 135 KB
试开URL’https://mirrors.ustc.edu.cn/CRAN/bin/windows/contrib/4.2/rlang_1.0.6.zip'
Content type 'application/zip' length 1574849 bytes (1.5 MB)
downloaded 1.5 MB
试开URL’https://mirrors.ustc.edu.cn/CRAN/bin/windows/contrib/4.2/vctrs_0.5.0.zip'
Content type 'application/zip' length 1361992 bytes (1.3 MB)
downloaded 1.3 MB
试开URL’https://mirrors.ustc.edu.cn/CRAN/bin/windows/contrib/4.2/plyr_1.8.7.zip'
Content type 'application/zip' length 1151702 bytes (1.1 MB)
downloaded 1.1 MB
程序包‘lifecycle’打开成功,MD5和检查也通过
程序包‘rlang’打开成功,MD5和检查也通过
Warning: 无法将拆除原来安装的程序包‘rlang’
Warning: 回复了‘rlang’
程序包‘vctrs’打开成功,MD5和检查也通过
程序包‘plyr’打开成功,MD5和检查也通过
下载的二进制程序包在
Z:\TEMP\Rtmp4EKYb8\downloaded_packages里
安装源码包‘ggplot2’
试开URL’https://mirrors.ustc.edu.cn/CRAN/src/contrib/ggplot2_3.4.0.tar.gz'
Content type 'application/octet-stream' length 3148426 bytes (3.0 MB)
downloaded 3.0 MB
* installing *source* package 'ggplot2' ...
** 成功将'ggplot2'程序包解包并MD5和检查
** using staged installation
** R
** data
*** moving datasets to lazyload DB
** inst
** byte-compile and prepare package for lazy loading
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) :
载入了名字空间'rlang' 1.0.4,但需要的是>= 1.0.6
Calls: <Anonymous> ... asNamespace -> loadNamespace -> namespaceImport -> loadNamespace
停止执行
ERROR: lazy loading failed for package 'ggplot2'
* removing 'C:/Program Files/R/R-4.2.1/library/ggplot2'
* restoring previous 'C:/Program Files/R/R-4.2.1/library/ggplot2'
下载的程序包在
‘Z:\TEMP\Rtmp4EKYb8\downloaded_packages’里
WARNING: Rtools is required to build R packages, but is not currently installed.
Please download and install Rtools 4.2 from https://cran.r-project.org/bin/windows/Rtools/ or https://www.r-project.org/nosvn/winutf8/ucrt3/.
v checking for file 'Z:\TEMP\Rtmp4EKYb8\remotes3cc398560ea\vqv-ggbiplot-7325e88/DESCRIPTION'
- preparing 'ggbiplot':
checking DESCRIPTION meta-information ...
checking DESCRIPTION meta-information ...
v checking DESCRIPTION meta-information
- checking for LF line-endings in source and make files and shell scripts
- checking for empty or unneeded directories
- looking to see if a 'data/datalist' file should be added
- building 'ggbiplot_0.55.tar.gz'
* installing *source* package 'ggbiplot' ...
** using staged installation
** R
** data
** byte-compile and prepare package for lazy loading
错误: package or namespace load failed for 'ggplot2' in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
载入了名字空间'rlang' 1.0.4,但需要的是>= 1.0.6
停止执行
ERROR: lazy loading failed for package 'ggbiplot'
* removing 'C:/Program Files/R/R-4.2.1/library/ggbiplot'
Warning messages:
1: In file.copy(savedcopy, lib, recursive = TRUE) :
拷贝C:\Program Files\R\R-4.2.1\library\00LOCK\rlang\libs\x64\rlang.dll到C:\Program Files\R\R-4.2.1\library\rlang\libs\x64\rlang.dll时出了问题:Permission denied
2: In i.p(...) : 安装程序包‘ggplot2’时退出狀態的值不是0
3: In i.p(...) :
安装程序包‘Z:/TEMP/Rtmp4EKYb8/file3cc7e0a2f5d/ggbiplot_0.55.tar.gz’时退出狀態的值不是0
>