This is a test version of Biostars. For the public version, visit https://www.biostars.org.
invalid command name "font" using cnetplot

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

3 answers

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

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)

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

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"

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.

OK ! I will try . Thank you so much !

Log in to answer this question.