在windows10上安装plotly时遇到错误
安装代码:
install.packages('plotly')
#or
devtools::install_github("ropensci/plotly")
遇到错误
installing source package 'plotly' ...
** 成功将'plotly'程序包解包并MD5和检查
** using staged installation
** R
** data
*** moving datasets to lazyload DB
** demo
** inst
** byte-compile and prepare package for lazy loading
Error in findpack(package, lib.loc) : there is no package called 'plotly'
Calls: -> findpack
停止执行
ERROR: lazy loading failed for package 'plotly'
removing '\Mac/Home/Documents/R/win-library/3.6/plotly'
Warning in install.packages :
installation of package ‘plotly’ had non-zero exit status
解决办法:
options(pkgType="binary")
安装过程警告抛出错误(converted from warning)
Error: (converted from warning) package ‘reshape2’ was built under R version 3.6.1
解决办法:
Sys.setenv("R_REMOTES_NO_ERRORS_FROM_WARNINGS" = "true")