简体   繁体   English

从Github安装R-Package IKTrading-错误消息

[英]Install R-Package IKTrading from Github - error message

I allow myself to post this help request as my attempts to download the R package "IKTrading" from Github repeteadly failed. 我允许自己发布此帮助请求,因为我尝试从Github下载R软件包“ IKTrading”的尝试反复失败。 I used both R V. 3.1.3. 我都使用了RV。3.1.3。 and R V.3.2.1.with identical results. 和R V.3.2.1。具有相同的结果。

My computer runs R on Windows 7, 64bit version. 我的计算机在Windows 7 64位版本上运行R。 Here is the session status: 这是会话状态:

R version 3.1.3 (2015-03-09) -- "Smooth Sidewalk" Copyright (C) 2015
The R Foundation for Statistical Computing Platform:
x86_64-w64-mingw32/x64 (64-bit)

Standard recommended solutions I found on the internet did not work in my case, such as: - Running R as administrator (done) - Making sure that that Rtools is already installed (done) - Scrupulously respecting the order of execution of different R packages, including more particularly devtools and quantstrat (done all that). 我在互联网上发现的标准推荐解决方案在我的情况下不起作用,例如:-以管理员身份运行R(完成)-确保已安装Rtools(完成)-严格遵守不同R包的执行顺序,包括更特别的devtools和quantstrat(全部完成)。

Here is the error message output for further investigation: 这是错误消息输出,供进一步研究:

> install_github(repo="IKTrading", username="IlyaKipnis")
Downloading github repo IlyaKipnis/IKTrading@master
Installing IKTrading
Skipping 1 packages ahead of CRAN: PerformanceAnalytics
"C:/PROGRA~1/R/R-31~1.3/bin/x64/R" --no-site-file --no-environ --no-save  \
  --no-restore CMD INSTALL "C:/Users/Cédric  \
  Spahr/AppData/Local/Temp/RtmpkP2GeU/devtools15d04c2a1d0a/IlyaKipnis-IKTrading-0b4e0e5"  \
  --library="C:/Users/Cédric Spahr/Documents/R/win-library/3.1"  \
  --install-tests 

* installing *source* package 'IKTrading' ...
Warning in file(file, ifelse(append, "a", "w")) :
  cannot open file 'C:/Users/Cidric Spahr/Documents/R/win-library/3.1/IKTrading/DESCRIPTION': No such file or directory
Error in file(file, ifelse(append, "a", "w")) : 
  cannot open the connection
ERROR: installing package DESCRIPTION failed for package 'IKTrading'
* removing 'C:/Users/Cédric Spahr/Documents/R/win-library/3.1/IKTrading'
Error: Command failed (1)
In addition: Warning message:
Username parameter is deprecated. Please use IlyaKipnis/IKTrading 

This worked for me: 这对我有用:

Installing package quantstrat as IKTrading package has dependency on it. 将软件包quantstrat安装为IKTrading软件包对此具有依赖性。

require(devtools)
install.packages("quantstrat", repos = "http://R-Forge.R-project.org")
library(quantstrat) #Load package
install_github("IlyaKipnis/IKTrading")

If this doesn't work, try running RStudio as administrator and run these commands again. 如果这不起作用,请尝试以管理员身份运行RStudio,然后再次运行这些命令。 Let me know if it works ! 让我知道它是否有效!

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM