我很难用巧妙的方法绘制烛台图表。显然,烛台不是我所安装的版本( 4.5.2 )的类型之一。因此,我试图通过这样做来巧妙地更新最新的4.7.1版本:
devtools::install_github("ropensci/plotly")但这是我犯的错误:
> devtools::install_github("ropensci/plotly")
Downloading GitHub repo ropensci/plotly@master
from URL https://api.github.com/repos/ropensci/plotly/zipball/master
Installing plotly
"C:/PROGRA~1/MICROS~3/RCLIEN~1/R_SERVER/bin/x64/R" --no-site-file --no-environ --no-save --no-restore --quiet CMD \
INSTALL "C:/Users/cinji/AppData/Local/Temp/RtmpMNgiEt/devtools27f029a57c1a/ropensci-plotly-2cc296d" \
--library="C:/Users/cinji/OneDrive/Documents/R/win-library/3.3" --install-tests
ERROR: dependencies 'rlang', 'crosstalk', 'promises' are not available for package 'plotly'
* removing 'C:/Users/cinji/OneDrive/Documents/R/win-library/3.3/plotly'
Error: Command failed (1)到底怎么回事?我该怎么办?
谢谢。
更新:我尝试了下面的答案之一:
install.packages(c('rlang', 'crosstalk', 'promises'))但我得到了这个
> install.packages(c('rlang', 'crosstalk', 'promises'))
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:
https://cran.rstudio.com/bin/windows/Rtools/
Installing packages into ‘C:/Users/cinji/OneDrive/Documents/R/win-library/3.3’
(as ‘lib’ is unspecified)
Warning in install.packages :
packages ‘rlang’, ‘crosstalk’, ‘promises’ are not available (for R version 3.3.2)这是否意味着我必须安装另一个版本的R?“关于RStudio”告诉我,我有版本1.2.1335 ( 2009-2019年) RStudio公司。
发布于 2019-06-28 18:04:29
我现在还没有足够的声誉来发表评论,所以我会把这个作为回答。您需要首先安装依赖项。
install.packages(c('rlang', 'crosstalk', 'promises'))https://stackoverflow.com/questions/56811076
复制相似问题