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

Installation error #65

Closed
cpsievert opened this issue Aug 5, 2015 · 11 comments
Closed

Installation error #65

cpsievert opened this issue Aug 5, 2015 · 11 comments

Comments

@cpsievert
Copy link

I have the dev version of ggplot2 and scales installed so perhaps that is causing problems:

> 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/wc/zv89d1fx5nxdljsysq40m6vr0000gn/T/RtmpYSGjDx/devtoolse2a716fe460/dkahle-ggmap-99653f1'  \
  --library='/Library/Frameworks/R.framework/Versions/3.2/Resources/library'  \
  --install-tests 

* installing *source* packageggmap...
** R
** data
*** moving datasets to lazyload DB
** inst
** preparing package for lazy loading
Warning: replacing previous import bygrid::arrowwhen loadingggmapWarning: replacing previous import bygrid::unitwhen loadingggmapWarning: replacing previous import byscales::alphawhen loadingggmapError in eval(expr, envir, enclos) : could not find function "eval"
Error : unable to load R code in packageggmapERROR: lazy loading failed for packageggmap* removing/Library/Frameworks/R.framework/Versions/3.2/Resources/library/ggmap* restoring previous/Library/Frameworks/R.framework/Versions/3.2/Resources/library/ggmapError: Command failed (1)
> sessionInfo()
R version 3.2.1 (2015-06-18)
Platform: x86_64-apple-darwin13.4.0 (64-bit)
Running under: OS X 10.10.3 (Yosemite)

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] devtools_1.8.0

loaded via a namespace (and not attached):
 [1] httr_1.0.0      R6_2.1.0        magrittr_1.5    rversions_1.0.2
 [5] tools_3.2.1     curl_0.9.1      Rcpp_0.12.0     memoise_0.2.1  
 [9] xml2_0.1.1      stringi_0.5-5   git2r_0.10.1    stringr_1.0.0  
[13] digest_0.6.8    fortunes_1.5-2 

> library(ggplot2)
> session_info()
Session info -------------------------------------------------------------------
 setting  value                       
 version  R version 3.2.1 (2015-06-18)
 system   x86_64, darwin13.4.0        
 ui       X11                         
 language (EN)                        
 collate  en_US.UTF-8                 
 tz       America/Chicago             

Packages -----------------------------------------------------------------------
 package    * version    date       source                         
 colorspace   1.2-6      2015-03-11 CRAN (R 3.2.0)                 
 curl         0.9.1      2015-07-04 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)                 
 fortunes     1.5-2      2013-12-14 CRAN (R 3.2.0)                 
 ggplot2    * 1.0.1.9002 2015-08-05 Github (hadley/ggplot2@d5947cb)
 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)                 
 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)                 
 rversions    1.0.2      2015-07-13 CRAN (R 3.2.0)                 
 scales       0.2.5.9003 2015-08-05 Github (hadley/scales@356bee8) 
 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) 
@bhive01
Copy link

bhive01 commented Aug 24, 2015

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 packageggmaptrying 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* packageggmap...
** packageggmapsuccessfully unpacked and MD5 sums checked
** R
** data
*** moving datasets to lazyload DB
** inst
** preparing package for lazy loading
Warning: replacing previous import byscales::alphawhen loadingggmapError in eval(expr, envir, enclos) : could not find function "eval"
Error : unable to load R code in packageggmapERROR: lazy loading failed for packageggmap* removing/Library/Frameworks/R.framework/Versions/3.2/Resources/library/ggmapThe downloaded source packages are in/private/var/folders/zg/hy0k4g312536_4l1qc1w27640000gn/T/Rtmp733aAo/downloaded_packagesWarning message:
In install.packages("ggmap") :
  installation of packageggmaphad 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)              

@bhive01
Copy link

bhive01 commented Aug 25, 2015

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* packageggmap...
** R
** data
*** moving datasets to lazyload DB
** inst
** preparing package for lazy loading
Warning: replacing previous import bygrid::arrowwhen loadingggmapWarning: replacing previous import bygrid::unitwhen loadingggmapWarning: replacing previous import byscales::ContinuousRangewhen loadingggmapWarning: replacing previous import byscales::alphawhen loadingggmapWarning: replacing previous import byscales::DiscreteRangewhen loadingggmapError in eval(expr, envir, enclos) : could not find function "eval"
Error : unable to load R code in packageggmapERROR: lazy loading failed for packageggmap* removing/Library/Frameworks/R.framework/Versions/3.2/Resources/library/ggmapError: 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)   

@geobrando
Copy link
Contributor

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.

See:
jrnold/ggthemes#35
jrnold/ggthemes#36

@geobrando
Copy link
Contributor

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.

@dkahle
Copy link
Owner

dkahle commented Aug 26, 2015

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.

@bhive01
Copy link

bhive01 commented Aug 26, 2015

@sctyner
Copy link

sctyner commented Oct 22, 2015

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)?

@dkahle
Copy link
Owner

dkahle commented Oct 23, 2015

Yea, the plan is to update it sometime over the next few weeks so that it will be fine with ggplot2 1.1.0.

@gau2112
Copy link

gau2112 commented Feb 25, 2016

@dkahle
I am facing same issue. What is the solution?

@dkahle
Copy link
Owner

dkahle commented Feb 25, 2016

This was fixed a while back, you just need to reinstall ggplot2 and ggmap.

@dkahle dkahle closed this as completed Feb 25, 2016
@gau2112
Copy link

gau2112 commented Feb 26, 2016

@dkahle

Its Working. Thank You.

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

6 participants