invalid command name "font" using cnetplot
3
0
Entering edit mode
7.4 years ago
dingailuma ▴ 20

Recently I used 'clusterProfiler' package to visualize biological networks. However, I ran into the following questions when I tried 'cnetplot':

An error occured when I used 'fixed=F' parameters runing cnetplot,

e.g. cnetplot(x, fixed=F)

      Error in structure(.External(.C_dotTclObjv, objv), class = "tclObj") :
      [tcl] invalid command name "font".

I searched a lot but couldn't find a way to solve. Do you have any clues ?BTW, I am using Rstudio 3.3.0. Thank you so much for your kind help ! I am looking forward to your reply .

cnetplot clusterProfiler • 4.5k views
ADD COMMENT
1
Entering edit mode
7.4 years ago
dingailuma ▴ 20

These errors occur just when you run these commands in Rstudio. So only need to do this in linux terminal.

ADD COMMENT
0
Entering edit mode
7.4 years ago
Guangchuang Yu ★ 2.6k

this may due to your igraph installation. It seems that tkplot is not supported.

please try:

library(igraph)
net <- graph( edges=c(1,2, 2,3, 3, 1), n=3, directed=F )
tkplot(net)
ADD COMMENT
0
Entering edit mode

Yes ,I found tkplot was not supported on R version 3.3.0. What should I do now ?

ADD REPLY
0
Entering edit mode

I tried the command you sent, after tkplot (net ), appeared the same error : Error in structure(.External(.C_dotTclObjv, objv), class = "tclObj") : [tcl] invalid command name "font"

ADD REPLY
0
Entering edit mode
7.4 years ago
Guangchuang Yu ★ 2.6k

I just test it for you with fresh R installed and then install the igraph package.

It do works. Your R maybe broken, try to re-install it.

ADD COMMENT
0
Entering edit mode

OK ! I will try . Thank you so much !

ADD REPLY

Login before adding your answer.

Traffic: 2545 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