nicholasehamilton / ggtern

Extension to ggplot2 for plotting ternary diagrams
www.ggtern.com
55 stars 14 forks source link

[Installation error] object 'coord_transform.cartesian' not found #27

Closed yassineMrabet closed 8 years ago

yassineMrabet commented 8 years ago

Hi Nicolas, I have some trouble with ggtern installation, with the below error message:

install.packages("ggtern") 
Installing package into ‘~/R/i686-pc-linux-gnu-library/3.2’
(as ‘lib’ is unspecified)
--2016-01-12 15:52:53--
[...]
Error in get(x, envir = ns, inherits = FALSE) : 
  object 'coord_transform.cartesian' not found
Error : unable to load R code in package ‘ggtern’
ERROR: lazy loading failed for package ‘ggtern’
* removing ‘~/R/i686-pc-linux-gnu-library/3.2/ggtern’
Warning in install.packages :
  installation of package ‘ggtern’ had non-zero exit status

The downloaded source packages are in
    ‘/tmp/RtmpnwEqnh/downloaded_packages’

Here is my sessionInfo():

R version 3.2.3 (2015-12-10)
Platform: i686-pc-linux-gnu (32-bit)
Running under: Ubuntu 14.04.3 LTS

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C              
 [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8    
 [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8   
 [7] LC_PAPER=en_US.UTF-8       LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C            
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       

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

other attached packages:
[1] ggplot2_2.0.0 shiny_0.12.2  rgpui_0.1-2  

loaded via a namespace (and not attached):
 [1] Rcpp_0.12.3      digest_0.6.9     rgp_0.4-1       
 [4] mime_0.4         plyr_1.8.3       grid_3.2.3      
 [7] R6_2.1.1         xtable_1.8-0     jsonlite_0.9.19 
[10] gtable_0.1.2     magrittr_1.5     scales_0.3.0    
[13] httr_1.0.0       stringi_1.0-1    emoa_0.5-0      
[16] curl_0.9.4       devtools_1.9.1   tools_3.2.3     
[19] stringr_1.0.0    munsell_0.4.2    httpuv_1.3.3    
[22] parallel_3.2.3   colorspace_1.2-6 memoise_0.2.1   
[25] htmltools_0.3  

I'm looking forward to your reply. Thank you for this awesome package. Regards, Yassine

yassineMrabet commented 8 years ago

fixed with 2.0.1 update Thank you very much for your efforts :)

Regards, Yassine

richierocks commented 6 years ago

This is apparently a problem again in the current version. Please reopen the issue.

I tried

devtools::install_github("nicholasehamilton/ggtern")

and this is the output

Using GitHub PAT from envvar GITHUB_PAT
Downloading GitHub repo nicholasehamilton/ggtern@master
from URL https://api.github.com/repos/nicholasehamilton/ggtern/zipball/master
Installing ggtern
'/Library/Frameworks/R.framework/Resources/bin/R' --no-site-file --no-environ --no-save  \
  --no-restore --quiet CMD INSTALL  \
  '/private/var/folders/sy/_w4kv6wj37b26k7k52ghxj180000gn/T/RtmppsexUX/devtoolsf9a515dba02/nicholasehamilton-ggtern-1801162'  \
  --library='/Library/Frameworks/R.framework/Versions/3.4/Resources/library'  \
  --install-tests 

* installing *source* package ‘ggtern’ ...
** R
** data
** preparing package for lazy loading
Error in get(x, envir = ns, inherits = FALSE) : 
  object 'coord_transform.cartesian' not found
Error : unable to load R code in package ‘ggtern’
ERROR: lazy loading failed for package ‘ggtern’
* removing ‘/Library/Frameworks/R.framework/Versions/3.4/Resources/library/ggtern’
Installation failed: Command failed (1)

I think the problem line is in gg-internal.R. You are trying to retrieve a function that no longer exists in ggplot2.

filb31 commented 5 years ago

Having the same issue again:

devtools::install_github("nicholasehamilton/ggtern")

gives:

Roger-GOAT commented 1 year ago

Any solve?