Skip to content

ArchR is running safely in R CLI, but "Cairo is not functional" error shows in rstudio, even Cairo is already installed. #1915

Discussion options

You must be logged in to vote

I do not have additional input on this. The .checkCairo() function is very simple. You will have to diagnose for yourself why it is failing.

ArchR/R/GgplotUtils.R

Lines 956 to 966 in f6c0388

.checkCairo <- function(){
tryCatch({
tmp <- dev.cur()
Cairo::Cairo(type='raster')
dev.off()
dev.set(tmp)
TRUE
}, error = function(e){
FALSE
})
}

Also not that Cairo is not necessarily essential for ArchR.

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@genomicworks
Comment options

@rcorces
Comment options

Answer selected by genomicworks
@genomicworks
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants