Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with newest ggplot2 version (2.2) #91

Closed
ddiez opened this issue Nov 11, 2016 · 9 comments
Closed

Error with newest ggplot2 version (2.2) #91

ddiez opened this issue Nov 11, 2016 · 9 comments

Comments

@ddiez
Copy link

ddiez commented Nov 11, 2016

I get an error when trying to plot a tree using the newest version of ggplot2 (2.2):

> library(ggtree)
> library(ape)
> tr <- rtree(10)
> ggtree(tr)
Error: StatTreeHorizontal was built with an incompatible version of ggproto.
Please reinstall the package that provides this extension.
@ddiez
Copy link
Author

ddiez commented Nov 12, 2016

Installing ggtree from source seems to fix the problem.

@jrash
Copy link

jrash commented Nov 13, 2016

Thanks, I was having the same issue and the fix worked for me too.

@danfulop
Copy link

@ddiez and @jrash which source? The stable source in bioconductor (v 1.0.21), the development source in bioconductor (v 1.7.3), or the source on GitHub in the master branch? Thanks!!

@ddiez
Copy link
Author

ddiez commented Nov 14, 2016

@danfulop source means installing from source rather than the built binaries:

biocLite("ggtree", type = "source")

This will rebuild the package using the latest ggproto spec in ggplot2 and solve the problem.

@GuangchuangYu
Copy link
Member

GuangchuangYu commented Nov 14, 2016

@danfulop The stable release version in bioconductor is 1.6.3.

For release version, pls always refer to https://bioconductor.org/packages/ggtree/.

Actually, if you visit old version (e.g. 1.0.21), the page will show you the following message:

This package is for version 3.1 of Bioconductor; 
for the stable, up-to-date release version, see ggtree.

@GuangchuangYu
Copy link
Member

@ddiez I bump up the version to force BioC to re-build the tarball, see https://github.com/Bioconductor-mirror/ggtree/commit/68bfcfc37ca9b89a0ee1adf70f7ad2bc39964344.

@danfulop
Copy link

@ddiez Thanks for clarifying which source. ...and @GuangchuangYu thanks for pointing me to the proper bioconductor page; I didn't notice I was on an outdated BioC page.

@nick-youngblut
Copy link

I'm getting this same error when installing ggtree from with conda via conda install -c bioconda bioconductor-ggtree. Is the bioconda channel just not up-to-date?

My installed ggplot2 version is bioconda --> 2.2.0-r3.3.1_0 r

@GuangchuangYu
Copy link
Member

don't use bioconda for r packages. most of them are out-dated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants