新包 sinx:R 语言社区语录
dapengde 我这样安装出错!
remotes::install_github('pzhaonet/sinx', build = TRUE, build_opts = c("--no-resave-data", "--no-manual"))
Downloading GitHub repo pzhaonet/sinx@master
Error in utils::download.file(url, path, method = download_method(), quiet = quiet, :
cannot open URL 'https://api.github.com/repos/pzhaonet/sinx/tarball/master'
直接浏览器 https://api.github.com/repos/pzhaonet/sinx/tarball/master 会下载一个压缩包pzhaonet-sinx-9f1d98a.tar.gz,本地安装还是不成功。
- 已编辑
dapengde install.packages("~/EGDownloads/pzhaonet-sinx-9f1d98a.tar.gz", repos = NULL, type = "source")
Installing package into ‘D:/library’
(as ‘lib’ is unspecified)
Warning in untar2(tarfile, files, list, exdir, restore_times) :
skipping pax global extended headers
ERROR: dependencies 'cowsay', 'multicolor', 'rmsfact' are not available for package 'sinx'
removing 'D:/library/sinx'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘D:/Documents/EGDownloads/pzhaonet-sinx-9f1d98a.tar.gz’ had non-zero exit status
原来是 'cowsay', 'multicolor', 'rmsfact'这几个包缺少了,安装完后,再本地安装就可以了。