R program - error installing ggplot2
0
0
Entering edit mode
16 months ago
Ehsan • 0

Hi,

When I'm trying to install.packages in R program I always face with this

Error: package or namespace load failed for ‘ggplot2’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
 there is no package called ‘colorspace’

How can I fix this?

R • 1.3k views
ADD COMMENT
0
Entering edit mode

Although not strictly a bioinformatics question: It is hard to determine what has happened here based on limited information. I can just guess that you installed ggplot2 in a non-standard way or that the installation of the dependency (colorspace) failed, or you have an old R version. Try first a clean install by starting R --vanilla. Then:

install.packages('ggplot2')
library('ggplot2')

If you still have problems, you need to post the complete output and the output of sessionInfo().

ADD REPLY
0
Entering edit mode

Might also need dependencies parameter set? install.packages('ggplot2', dependencies=TRUE) I seem to get different behaviors depending on where I'm working.

ADD REPLY
0
Entering edit mode

Good point, this should be the default but it doesn't hurt. And local configurations may differ.

ADD REPLY

Login before adding your answer.

Traffic: 1975 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6