简体   繁体   English

新R用户在安装和运行plot软件包时遇到问题

[英]New R user having problems installing and running plotly package

A few months ago I created a shiny app using plotly. 几个月前,我使用plotly创建了一个闪亮的应用程序。 My laptop at the time crashed, and I have had to download R and RStudio on a new computer. 当时我的笔记本电脑崩溃了,我不得不在新计算机上下载R和RStudio。 I am having issues running the plotly library on the new computer, which isn't allowing the shiny app to run at all. 我在新计算机上运行plotly库时遇到问题,这根本不允许闪亮的应用程序运行。

library(plotly)
 Loading required package: ggplot2 Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : there is no package called 'colorspace' Error: package 'ggplot2' could not be loaded 

I have searched other topics related to ggplot2 errors like this, and none of the help from them has worked. 我已经搜索了与ggplot2错误相关的其他主题,但这些帮助均ggplot2

Installing colorspace and restarting R seemed to have fixed this problem, but now my formerly working shiny app is glitchy. 安装色彩空间并重新启动R似乎已解决了问题,但是现在我以前运行的闪亮应用程序出现了故障。 That seems like a topic for a different question though. 不过,这似乎是另一个问题的话题。

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

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