简体   繁体   English

安装 package 失败。 错误:系统命令错误,退出状态:-1,stdout + stderr empty,

[英]Failed to install a package. Error: System command error, exit status: -1, stdout + stderr empty,

I've tried to install a package for almost 2 days but installation has not been working by now.我已经尝试安装 package 将近 2 天,但安装到现在还没有工作。 I tried a lot of different ways like我尝试了很多不同的方法,比如

install.packages("NIADic_0.0.1.tar.gz", repos = NULL, type = "source")

then Warning in install.packages: installation of package 'NIADic_0.0.1.tar.gz' had non-zero exit status然后 install.packages 中的警告:package 'NIADic_0.0.1.tar.gz' 的安装具有非零退出状态

and

devtools::install_local('C://Users/pogr1/Desktop/NIADic_0.0.1.tar.gz', force = TRUE) 

then Error: Failed to install 'NIADic' from local: System command error, exit status: -1, stdout + stderr empty然后错误:无法从本地安装“NIADic”:系统命令错误,退出状态:-1,stdout + stderr 为空

install.packages("https://github.com/haven-jeon/NIADic/releases/download/0.0.1/NIADic_0.0.1.tar.gz",
                 lib = .libPaths()[1], repos = NULL, type = "win.binary")

then cannot open compressed file 'NIADic_0.0.1.tar.gz/DESCRIPTION', probable reason 'No such file or directory' Error in install.packages: cannot open the connection然后无法打开压缩文件“NIADic_0.0.1.tar.gz/DESCRIPTION”,可能的原因“没有这样的文件或目录” install.packages 中的错误:无法打开连接

and even I reinstalled R, rstudio, and Rtools but still not working甚至我重新安装了 R、rstudio 和 Rtools 但仍然无法正常工作

- Session info     
------------------------------------------------------------------------
 setting  value                       
 version  R version 3.6.1 (2019-07-05)
 os       Windows 10 x64              
 system   x86_64, mingw32             
 ui       RStudio                     
 language (EN)                        
 collate  Korean_Korea.949            
 ctype    Korean_Korea.949            
 tz       Asia/Seoul                  
 date     2019-10-31    

plz help:(请帮助:(

Although this is a bit old... The package needs RTools for compilation, but then it needs pandoc , package data.table etc. to build vignettes.虽然这有点旧...... package 需要RTools进行编译,但它需要pandoc , package data.table等来构建vignettes。 If you want to proceed easily only with package itself without docs, it should work to have RTools installed and then run:如果您只想在没有文档的情况下仅使用 package 本身轻松进行操作,则应该安装 RTools 然后运行:

devtools::install_github('haven-jeon/NIADic/NIADic', build_vignettes = FALSE)

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 install_github 中的错误:系统命令“Rcmd.exe”失败,退出状态:1,打印了标准输出和标准错误 - Error in install_github: System command 'Rcmd.exe' failed, exit status: 1, stdout & stderr were printed devtools::check - 系统命令 'Rcmd.exe' 失败,退出 stauts:1,stdout + stderr: - devtools::check - System command 'Rcmd.exe' failed, exit stauts:1, stdout + stderr: 安装 R 包时出错。 找不到 -lgmop -lquadmath - Error install R package. Cannot find -lgmop -lquadmath 无法安装 tdplyr package。 错误:参数不是环境 - Fail to install tdplyr package. error: argument is not an environment 无法安装.packages():系统调用失败:无法分配内存; 包的安装具有非零退出状态 - Unable to install.packages(): system call failed: Cannot allocate memory; installation of package had non-zero exit status 如何安装插入符号包。 尝试 install.packages("caret") 但出现错误 - How to install caret package. Tried install.packages("caret") but getting error install.package("matlib") 在 RStudio 中显示非零退出状态错误 - install.package("matlib") shows non-zero exit status error in RStudio R devtools安装错误-软件包'curl'的安装具有非零退出状态 - R devtools install error - installation of package 'curl' had non-zero exit status 包安装错误:编译失败 - Package install error: compilation failed 在Rstudio上安装R软件包pcalg时发生错误:“ clang:错误:链接器命令失败,退出代码为1” - error when installing R package pcalg on Rstudio: “clang: error: linker command failed with exit code 1”
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM