Unknown94
Unknown94

Reputation: 45

package ‘ggplot2’ x.x.x is loaded, but > x.x.x is required by ‘plotly’

I am trying to use 'plotly' package in R to build graphs, but I am getting the following error:

package ‘ggplot2’ 2.1.0 is loaded, but > 2.1.0 is required by ‘plotly’
In addition: Warning message:
package ‘plotly’ was built under R version 3.2.5

I have tried installing 'ggplot2' and 'plotly' again and again, but the error still remains the same.

Any solutions for this?

Upvotes: 1

Views: 2208

Answers (1)

boshek
boshek

Reputation: 4406

Try updating everything. Use the installr package like so:

install.packages("installr")

library(installr)
updateR()

Then be sure that you update the packages when prompted to do so.

Upvotes: 1

Related Questions