Closed fhu2008 closed 2 years ago
Hi, I can't help with this, but I did run into the same exact error just now. I tried a few things but couldn't figure out what's going wrong...
Hi, thanks for reporting. Unfortunately, I cannot reproduce this issue on my system, which makes it a bit tricky to debug. Could you send me the output of sessionInfo()
after loading gggenomes
?
OK, I think I found the issue. In the latest ggplot2 v3.4.0 release, the function ggplot2:::new_data_frame()
has been removed. I'll try to upload a fix later today
Hi, thanks for the swift response. If you still would like me to get you the sessionInfo I can do that, but looks like you know what's going on already. Thanks again!
Ok, should be fixed by https://github.com/thackl/gggenomes/commit/f70d3fae346d9494f453ddf11f9393a04c649674. Let me know if you still have problems after updating the package.
It still doesn't work after updating the package., the errors information are the same as before. However, it works when I change the ggplot2 version from 3.4 to 3.0.0 . many thanks.
For me reinstalling the package fixed this bug, no need to change my ggplot2 version. Thanks for the quick fix!
Hello, and thanks for an awesome tool!
I have a question regarding geom_link. when geom_link() was added, the errores were showed. Could you help me fix this.
Thanks in advance!
----sample data (R.version 4.2.0)
s0 <- tibble( seq_id = c("a", "b"), length = c(600, 550) )
g0 <- tibble( seq_id = c("a", "a", "b"), start = c(50, 350, 80), end = c(250, 500, 450) )
l0 <- tibble( seq_id = c("a", "a"), start = c(50, 400), end = c(250, 480), seq_id2 = c("b", "b"), start2 = c(80, 350), end2 = c(300, 430) )
p <- gggenomes(genes=g0, seqs=s0, links=l0) p + geom_seq() +
geom_seq_label() +
geom_gene() +
-----ok
when added geom_link() ,
Error in
geom_link()
: ! Problem while converting geom to grob. i Error occurred in the 4th layer. Caused by error inlink_to_poly()
: ! object 'new_data_frame' not found Runrlang::last_error()
to see where the error occurredBacktrace:
<fn>
(x)<dbl>
)rlang::last_trace()
to see the full context.