-
Notifications
You must be signed in to change notification settings - Fork 231
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
Installation error #65
Comments
Was gonna try some geocodeing today and can't install with the same issue. It fails in the same way if I install from source, binary or Github. OSX 10.10.5 > install.packages("ggmap")
There is a binary version available but the source version is
later:
binary source needs_compilation
ggmap 2.4 2.5.2 FALSE
installing the source package ‘ggmap’
trying URL 'http://cran.rstudio.com/src/contrib/ggmap_2.5.2.tar.gz'
Content type 'application/x-gzip' length 2948233 bytes (2.8 MB)
==================================================
downloaded 2.8 MB
* installing *source* package ‘ggmap’ ...
** package ‘ggmap’ successfully unpacked and MD5 sums checked
** R
** data
*** moving datasets to lazyload DB
** inst
** preparing package for lazy loading
Warning: replacing previous import by ‘scales::alpha’ when loading ‘ggmap’
Error in eval(expr, envir, enclos) : could not find function "eval"
Error : unable to load R code in package ‘ggmap’
ERROR: lazy loading failed for package ‘ggmap’
* removing ‘/Library/Frameworks/R.framework/Versions/3.2/Resources/library/ggmap’
The downloaded source packages are in
‘/private/var/folders/zg/hy0k4g312536_4l1qc1w27640000gn/T/Rtmp733aAo/downloaded_packages’
Warning message:
In install.packages("ggmap") :
installation of package ‘ggmap’ had non-zero exit status
> session_info()
Session info ---------------------------------------------------------------
setting value
version R version 3.2.2 (2015-08-14)
system x86_64, darwin13.4.0
ui AQUA
language (EN)
collate en_US.UTF-8
tz America/Los_Angeles
Packages -------------------------------------------------------------------
package * version date source
colorspace 1.2-6 2015-03-11 CRAN (R 3.2.0)
curl 0.9.2 2015-08-08 CRAN (R 3.2.0)
devtools * 1.8.0 2015-05-09 CRAN (R 3.2.0)
digest 0.6.8 2014-12-31 CRAN (R 3.2.0)
ggplot2 * 1.0.1.9002 2015-07-23 Github (hadley/ggplot2@ee96a37)
git2r 0.10.1 2015-05-07 CRAN (R 3.2.0)
gtable 0.1.2 2012-12-05 CRAN (R 3.2.0)
httr 1.0.0 2015-06-25 CRAN (R 3.2.0)
magrittr 1.5 2014-11-22 CRAN (R 3.2.0)
MASS 7.3-43 2015-07-16 CRAN (R 3.2.2)
memoise 0.2.1 2014-04-22 CRAN (R 3.2.0)
munsell 0.4.2 2013-07-11 CRAN (R 3.2.0)
plyr 1.8.3 2015-06-12 CRAN (R 3.2.0)
R6 2.1.0 2015-07-04 CRAN (R 3.2.0)
Rcpp 0.12.0 2015-07-25 CRAN (R 3.2.0)
reshape2 1.4.1 2014-12-06 CRAN (R 3.2.0)
rversions 1.0.2 2015-07-13 CRAN (R 3.2.0)
scales 0.2.5.9001 2015-07-23 Github (hadley/scales@cca879a)
stringi 0.5-5 2015-06-29 CRAN (R 3.2.0)
stringr 1.0.0 2015-04-30 CRAN (R 3.2.0)
xml2 0.1.1 2015-06-02 CRAN (R 3.2.0) |
Tried an update this morning and if anything it got worse. > install_github("dkahle/ggmap")
Downloading GitHub repo dkahle/ggmap@master
Installing ggmap
Skipping 2 packages ahead of CRAN: ggplot2, scales
'/Library/Frameworks/R.framework/Resources/bin/R' --no-site-file \
--no-environ --no-save --no-restore CMD INSTALL \
'/private/var/folders/zg/hy0k4g312536_4l1qc1w27640000gn/T/Rtmpk5cAHI/devtools2d562e8c966/dkahle-ggmap-7ecc8bf' \
--library='/Library/Frameworks/R.framework/Versions/3.2/Resources/library' \
--install-tests
* installing *source* package ‘ggmap’ ...
** R
** data
*** moving datasets to lazyload DB
** inst
** preparing package for lazy loading
Warning: replacing previous import by ‘grid::arrow’ when loading ‘ggmap’
Warning: replacing previous import by ‘grid::unit’ when loading ‘ggmap’
Warning: replacing previous import by ‘scales::ContinuousRange’ when loading ‘ggmap’
Warning: replacing previous import by ‘scales::alpha’ when loading ‘ggmap’
Warning: replacing previous import by ‘scales::DiscreteRange’ when loading ‘ggmap’
Error in eval(expr, envir, enclos) : could not find function "eval"
Error : unable to load R code in package ‘ggmap’
ERROR: lazy loading failed for package ‘ggmap’
* removing ‘/Library/Frameworks/R.framework/Versions/3.2/Resources/library/ggmap’
Error: Command failed (1)
> session_info()
Session info ---------------------------------------------------------------
setting value
version R version 3.2.2 (2015-08-14)
system x86_64, darwin13.4.0
ui AQUA
language (EN)
collate en_US.UTF-8
tz America/Los_Angeles
date 2015-08-25
Packages -------------------------------------------------------------------
package * version date source
colorspace 1.2-6 2015-03-11 CRAN (R 3.2.0)
curl 0.9.2 2015-08-08 CRAN (R 3.2.0)
devtools * 1.9.0 2015-08-25 Github (hadley/devtools@76ada1d)
digest 0.6.8 2014-12-31 CRAN (R 3.2.0)
ggplot2 * 1.0.1.9003 2015-08-25 Github (hadley/ggplot2@e023c24)
gtable 0.1.2 2012-12-05 CRAN (R 3.2.0)
httr 1.0.0 2015-06-25 CRAN (R 3.2.0)
knitr 1.10.5 2015-05-06 CRAN (R 3.2.0)
magrittr 1.5 2014-11-22 CRAN (R 3.2.0)
memoise 0.2.1 2014-04-22 CRAN (R 3.2.0)
munsell 0.4.2 2013-07-11 CRAN (R 3.2.0)
plyr 1.8.3 2015-06-12 CRAN (R 3.2.0)
R6 2.1.0 2015-07-04 CRAN (R 3.2.0)
Rcpp 0.12.0 2015-07-25 CRAN (R 3.2.0)
rstudioapi 0.3.1 2015-04-07 CRAN (R 3.2.0)
scales * 0.3.0.9000 2015-08-25 Github (hadley/scales@7fc502c)
stringi 0.5-5 2015-06-29 CRAN (R 3.2.0)
stringr 1.0.0 2015-04-30 CRAN (R 3.2.0) |
As @cpsievert speculated, both the namespace warnings and the errors are being caused by changes introduced in the dev version of ggplot2. I would recommend reverting to a 1.0.1 if possible until this gets addressed. |
If reverting is not possible because the dev version is a dependency in other projects you could use packrat, though I've never used it so can't attest to how well it works. |
Sorry I didn't see this thread sooner – I don't have much time to work on ggmap. The problem is definitely due to the changes going on in the ggplot2 world (ggplot2/scales mostly, although as you suggest it appears now perhaps devtools also). For the time being, I'd revert to the CRAN versions of those packages. I'll look into it more on Friday. |
@dkahle @hadley said just as much. https://twitter.com/bhive01/status/636239716598288384 |
What are your plans for updating ggmap? Do you know at all when you'll be updating it (maybe when Hadley puts the new ggplot2 version on CRAN)? |
Yea, the plan is to update it sometime over the next few weeks so that it will be fine with ggplot2 1.1.0. |
@dkahle |
This was fixed a while back, you just need to reinstall ggplot2 and ggmap. |
Its Working. Thank You. |
I have the dev version of ggplot2 and scales installed so perhaps that is causing problems:
The text was updated successfully, but these errors were encountered: