CellChat icon indicating copy to clipboard operation
CellChat copied to clipboard

unable to start device 'png' in save the plots of the all inferred network

Open DelongZHOU opened this issue 2 years ago • 2 comments

Hello, I'm trying to follow the tutorial with Allen Brain Atlas and I have encountered an issue. Following section "Automatically save the plots of the all inferred network for quick exploration" with the provided code, I receive this error:

Error in grDevices::png(paste0(signaling.name, "_hierarchy_individual.png"), : unable to start device 'png'

In the output files I have a few groups of 5 files for some interactions (<>_hierachy_aggregate.png, <>_hierachy_aggregate.svg, <>_hierarchy_individual.png,<>_hierarchy_individual.svg, <>_L-R_contribution.pdf) Except for LAMININ which only has LAMININ_hierarchy_individual.svg, so I assume the problem is linked to this interaction in particular.

I tried again and same thing happens at the same interaction.

I wonder what's causing this problem (specially the svg was fine) and how to solve it. I can provide the cellchat.rds if necessary (~900Mb) Thanks!

DelongZHOU avatar Jun 16 '23 20:06 DelongZHOU

Same problem too. Have you resolved it?

heisar310 avatar Dec 27 '23 09:12 heisar310

@heisar310 You may try install.packages(“Cairo”)

sqjin avatar Dec 29 '23 01:12 sqjin