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 in eval(expr, envir, enclos) : could not find function "eval" #36

Closed
jowens opened this issue Aug 5, 2015 · 5 comments
Closed

Comments

@jowens
Copy link

jowens commented Aug 5, 2015

Trying to build @hadley's ggplot2 book. It requires ggthemes. Installing ggthemes yields an issue with eval. Any suggestion for me? (Presume the warnings are related to the previous issue.)

> install.packages("ggthemes")
Installing package into '/Users/jowens/Library/R'
(as 'lib' is unspecified)
trying URL 'http://cran.cnr.Berkeley.edu/src/contrib/ggthemes_2.2.1.tar.gz'
Content type 'application/x-gzip' length 433489 bytes (423 KB)
==================================================
downloaded 423 KB

* installing *source* package 'ggthemes' ...
** package 'ggthemes' successfully unpacked and MD5 sums checked
** R
** inst
** preparing package for lazy loading
Warning: replacing previous import by 'grid::arrow' when loading 'ggthemes'
Warning: replacing previous import by 'grid::unit' when loading 'ggthemes'
Warning: replacing previous import by 'scales::alpha' when loading 'ggthemes'
Error in eval(expr, envir, enclos) : could not find function "eval"
Error : unable to load R code in package 'ggthemes'
ERROR: lazy loading failed for package 'ggthemes'
* removing '/Users/jowens/Library/R/ggthemes'
mission-burrito 9662$ R

R version 3.2.1 (2015-06-18) -- "World-Famous Astronaut"
Copyright (C) 2015 The R Foundation for Statistical Computing
Platform: x86_64-apple-darwin14.4.0 (64-bit)
@jrnold
Copy link
Owner

jrnold commented Aug 5, 2015

The issue #35 deals with the warnings. However, the problem with eval seems to be the switch in how ggplot2 handles its geom objects. I'll fix this, but it may be a few days until I can get to it.

@jowens
Copy link
Author

jowens commented Aug 5, 2015

Super. Thanks!

@jrnold
Copy link
Owner

jrnold commented Aug 5, 2015

Though I may push back that assessment a bit; I'll need to grok the way the new geoms and ggproto works to translate the geoms in ggthemes. Maybe you can build with an earlier version of ggplot2?

@jowens
Copy link
Author

jowens commented Aug 5, 2015

Hadley requires a dev version of ggplot2 to build the book, so that won't work.

I've been intermittently trying to build the book for the past few months. I haven't succeeded yet. This is the first time I've got to ggthemes though, so I must be making progress.

@hadley
Copy link
Contributor

hadley commented Aug 5, 2015

It should be a fairly straightforward translation - I'd say an hour tops, to figure out what's changed and how to update your geoms. The code inside ggplot2 has been cleaned up quite a bit, so if you just pick a random geom and look at its source you should be able to see what you need to do pretty easily.

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

3 participants