Open JesseRop opened 1 year ago
Hmm thanks for the bug report. I can confirm that
library(Seurat)
data("pbmc_small")
pl = FeaturePlot(object = pbmc_small, features = 'PC_1')
graph2ppt(x=pl, file="./test.pptx", width=7, height=5)
also produces the error
Error in open.connection(con, "rb") : cannot open the connection
In addition: Warning message:
In open.connection(con, "rb") :
cannot open file 'C:\Users\bherr\AppData\Local\Temp\RtmpCQqwZP\file1f6849f02517/raster-rId000002.png': No such file or directory
for me - haven't figured out yet where that is coming from...
graph2doc(x=pl, file="./test.docx", width=7, height=5)
does seem to work though, if that's of any help...
Will try to look a bit further where this is coming from...
I have the similar problem, and I have just updated all my R CRAN packages 3 hours ago. But I found that the ggplot object (like plots made through ggsurvplot() and ggplot2() function ) works fine, but the plotsI build through dotplot() function using the enrichr package for enrichment analysis got the error. I hope my experience will help to find the bug.
> ggsurvplot(fit, data = lung)
> export::graph2ppt(file = './output/test.pptx',append=T)
Exported graph as ./output/test.pptx
> ggplot(df, aes(gp, y)) +
+ geom_point()
> export::graph2ppt(file = './output/test.pptx',append=T)
Exported graph as ./output/test.pptx
> dotplot(Case_go)
> export::graph2ppt(file = './output/test.pptx',append=T)
Error in open.connection(con, "rb") : cannot open the connection
In addition: Warning message:
In open.connection(con, "rb") :
cannot open file 'C:\Users\JinXing\AppData\Local\Temp\RtmpMTp2kQ\file2bb8508d12e7/raster-rId000002.png': No such file or directory
Help!!! I also suffered the same problem.
Error in open.connection(con, "rb") : cannot open the connection In addition: Warning message: In open.connection(con, "rb") : cannot open file 'C:\Users\yaolq\AppData\Local\Temp\Rtmpu4jUEU\filecf8430fca3/raster-rId000002.png': No such file or directory
Hope some can find the solutions, really thanks.
Dear developer,
Many thanks for the great tool! Very handy. I'll be grateful for your assistance with the issue below.
I updated my rstudio to the latest version and R to 4.2 and now not able to export getting the error _'Warning in .Internal(environment(fun)) : closing unused connection 3 (/var/folders/9h/zbzv_b3j3wz2r6mdgw9s2p04000lw8/T//RtmpkTyPis/filee19561b44ad/raster-rId000002.png) Warning: cannot open file '/var/folders/9h/zbzvb3j3wz2r6mdgw9s2p04000lw8/T//RtmpkTyPis/filee197fc756a/raster-rId000002.png': No such file or directoryError in open.connection(con, "rb") : cannot open the connection'
I have tried making a reproducible example with the dataset loaded into pbmc found here ( https://cf.10xgenomics.com/samples/cell/pbmc3k/pbmc3k_filtered_gene_bc_matrices.tar.gz )
The code can be run in rmarkdown as below
title: "export trial" output: html_document date: "2023-01-25"
Plotting and exporting
The output of session info is below