Closed mgabriell1 closed 11 months ago
I encountered the same problem earlier today. I thought it was due to a poorly formatted file on my end. When I tried with a small viral GFF3 from NCBI, the problem persisted. And when I finally tried the example data, I got the same error as you.
I am hoping there is a quick answer to this.
tl;dr I think I fixed the issue. You can try the fix immediately by installing via
devtools::install_github("thackl/gggenomes@fix-156")
I was able to reproduce this error in R version 4.3.1 (it did not occur in R version 4.1). Relevant changes have been introduced in version 4.2.0 and 4.3.0 (see changelog)
- Calling && or || with either argument of length greater than one now gives a warning (which it is intended will become an error).
- Calling if() or while() with a condition of length greater than one gives an error rather than a warning. Consequently, environment variable _R_CHECK_LENGTH_1CONDITION no longer has any effect. and
Calling && or || with LHS or (if evaluated) RHS of length greater than one is now always an error, with a report of the form
'length = 4' in coercion to 'logical(1)'
Environment variable _R_CHECK_LENGTH_1LOGIC2 no longer has any effect.
Installing the patch, restarting R, loading ggtree
and then loading gggenomes
worked. Thanks!
Sorry for the late reply. Yes, this now works. Thanks for the quick fix!
Hi @thackl, Thanks for the great package! The example plots look great. I'm having some issue loading data (either mine or the example one) as you can see below (the error is exactly the same whether I load the example data and my gff3 or gbff files):
I think it might be related to https://github.com/thackl/gggenomes/issues/96, but even if I load first the
S4Vectors
package and thengggenomes
the error persists. I was still able to read the sequence files usingread_seqs("data.gbff")
obtaning a table with contigs lengths. Below you can find mysessionInfo()
details. How is this solvable? Thanks for the support!